/* dist/style.css */
:root {
  --paper:#f1f1f1;
  --surface:#fafaf9;
  --ink:#272b2e;
  --muted:#6a716f;
  --line:#d9dad9;
  --accent:#c54548;
  --accent-soft:#f2e7e3;
  --tech:#63b9c7;
  --head:clamp(46px,12vh,72px);
  --foot:clamp(56px,14vh,82px);
  --gutter:clamp(16px,3.5vw,60px);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: transparent;
  transition:
    color .16s,
    background .16s,
    transform .16s;
  touch-action: manipulation;
}
button:hover {
  color: var(--accent);
}
button:active {
  transform: translateY(1px);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:disabled {
  opacity: .4;
  cursor: default;
}
button.primary {
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  padding: 12px 20px;
  white-space: nowrap;
  font-weight: 650;
}
button.primary:hover {
  background: var(--accent);
  color: #fff;
}
button.primary > span {
  margin-left: 22px;
}
.quiet {
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
}
.hidden {
  display: none !important;
}
.screen {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
input,
select {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid #bebfbe;
  background: rgba(231, 232, 231, .314);
  color: var(--ink);
  border-radius: 3px 3px 0 0;
  padding: 9px 10px;
  line-height: 1.25;
}
input[type=number] {
  width: 100%;
  font-variant-numeric: tabular-nums;
}
input[type=checkbox] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex: none;
}
input[type=range] {
  width: 100%;
  accent-color: var(--accent);
  padding: 0;
  height: 26px;
  background: transparent;
  border: 0;
}
input[type=range]::-webkit-slider-thumb {
  cursor: ew-resize;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.tiny {
  font-size: 12px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
}
.section-title h3,
.section-title h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
}
.section-title > span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
#menu {
  isolation: isolate;
  background: #e9ebec;
}
.menu-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -3;
}
#menu-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.menu-shade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 55%,
      #f1f1f10a 63%,
      #f1f1f130);
}
.menu-fullscreen {
  position: absolute;
  right: max(22px, env(safe-area-inset-right));
  top: max(16px, env(safe-area-inset-top));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #646d71;
  background: rgba(239, 242, 242, .51);
  font-size: 26px;
  z-index: 3;
}
.menu-fullscreen:hover {
  color: var(--ink);
  background: #fff;
}
.menu-content {
  position: absolute;
  left: 63%;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  animation: menu-arrive .55s ease-out both;
}
.menu h1 {
  font-size: clamp(32px, 6.5vh, 62px);
  font-weight: 750;
  letter-spacing: .01em;
  white-space: nowrap;
  line-height: 1.2;
  margin: 0 0 clamp(22px, 6vh, 55px);
  color: #252b31;
  text-shadow: 0 1px #fff8;
}
.menu-actions {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.8vh, 16px);
  width: 100%;
}
.menu-actions > .vn-choice {
  position: relative;
  display: flex;
  align-items: center;
  text-align: left;
  min-height: clamp(40px, 8vh, 70px);
  padding: 10px 18px 10px 32px;
  color: #5a6469;
  font-size: clamp(20px, 3.8vh, 34px);
  font-weight: 450;
  background: transparent;
  border-radius: 0 4px 4px 0;
}
.vn-choice:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform .18s;
}
.vn-choice .choice-sigil {
  position: absolute;
  left: 9px;
  top: 50%;
  font-style: normal;
  font-size: 19px;
  transform: translateY(-50%);
  opacity: 0;
  color: #f7a6a2;
  transition: opacity .18s;
}
.menu-actions > .vn-choice:hover {
  background: rgba(255, 255, 255, .27);
  color: #323b40;
}
.menu-actions > .vn-choice.selected {
  background: #2e3437;
  color: #fff;
  box-shadow: 8px 8px 0 rgba(120, 131, 138, .063);
}
.vn-choice.selected:before {
  transform: scaleY(1);
}
.vn-choice.selected .choice-sigil {
  opacity: 1;
}
.vn-choice.selected:hover {
  background: #262d30;
  color: #fff;
}
#menu-sparks {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}
.tap-spark {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid #be3f4a;
  transform: translate(-50%, -50%) rotate(45deg);
  animation: tap-bloom .65s ease-out forwards;
}
.tap-spark:before,
.tap-spark:after {
  content: "";
  position: absolute;
  top: -6px;
  right: -6px;
  bottom: -6px;
  left: -6px;
  border: 1px solid #55a2ae70;
}
.tap-spark:after {
  top: -12px;
  right: -12px;
  bottom: -12px;
  left: -12px;
  border-color: rgba(255, 255, 255, .627);
}
#setup {
  isolation: isolate;
  background: var(--paper);
}
#setup:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
  background:
    linear-gradient(
      120deg,
      #f7f8f6 15%,
      #e9eae9 52%,
      #f4f5f3 52.1%,
      #f4f5f3 100%);
}
.page-head {
  height: var(--head);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px var(--gutter);
}
.page-head h2 {
  font-size: clamp(20px, 4.2vh, 30px);
  font-weight: 650;
  margin: 0;
  letter-spacing: .03em;
}
.page-head .back {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 23px;
  color: #5c5f5d;
  background: rgba(255, 255, 255, .533);
}
.page-head .back:hover {
  background: var(--ink);
  color: #fff;
}
.page-head .quiet {
  margin-left: auto;
  font-size: 14px;
  color: var(--ink);
}
.ready-room {
  height: calc(100% - var(--head) - var(--foot));
  display: grid;
  grid-template-columns: 23% 33% 44%;
  grid-template-rows: minmax(0, 1fr);
  padding: 6px var(--gutter) 0;
  align-items: stretch;
}
.roster-panel {
  min-width: 0;
  padding: clamp(6px, 2vh, 18px) 18px 6px 0;
  overflow: auto;
  scrollbar-width: thin;
}
.roster-panel h3,
.ready-loadout h3 {
  font-size: clamp(15px, 2.7vh, 21px);
  font-weight: 650;
  margin: 0 0 12px;
}
.roster-choice {
  display: flex;
  position: relative;
  align-items: center;
  text-align: left;
  gap: 10px;
  width: 100%;
  min-height: clamp(54px, 12vh, 86px);
  padding: 7px 10px 7px 0;
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 255, 255, .44);
  border-radius: 0;
}
.roster-choice img {
  width: clamp(38px, 8.5vh, 60px);
  height: clamp(40px, 9vh, 66px);
  object-fit: cover;
  object-position: 27% center;
  border-radius: 2px;
}
.roster-choice span {
  min-width: 0;
  font-size: clamp(12px, 2.5vh, 18px);
  font-weight: 650;
  line-height: 1.3;
}
.roster-choice b {
  font-size: 15px;
  color: var(--accent);
  margin-left: auto;
}
.ready-stats {
  padding: clamp(9px, 2vh, 18px) 0;
  display: flex;
  flex-direction: column;
}
.ready-stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-height: clamp(30px, 7vh, 48px);
  padding: 7px 4px;
  border-bottom: 1px solid #ced0ce90;
}
.ready-stats span {
  font-size: clamp(12px, 2.3vh, 15px);
  color: var(--muted);
}
.ready-stats strong {
  font-size: clamp(19px, 3.8vh, 28px);
  line-height: 1;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  color: #373a39;
}
.passive-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 8px 0;
  font-size: clamp(11px, 2.3vh, 15px);
  text-align: left;
  color: #5f6461;
  border-top: 1px solid #c1c4c2;
}
.passive-button b {
  font-size: 17px;
  font-weight: 400;
  color: var(--accent);
}
.ready-stage {
  position: relative;
  margin: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
  pointer-events: none;
}
.ready-stage > img {
  position: relative;
  width: 120%;
  height: 104%;
  object-fit: contain;
  object-position: center bottom;
  z-index: 2;
  filter: drop-shadow(0 12px 10px #2a302d22);
}
.stage-plane {
  position: absolute;
  top: 10%;
  right: 12%;
  bottom: 6%;
  left: 12%;
  border-right: 1px solid #7cafb82b;
  background: rgba(251, 252, 250, .23);
  transform: skew(-12deg);
  z-index: 0;
}
.stage-floor {
  position: absolute;
  bottom: 3%;
  left: 12%;
  right: 12%;
  height: 5%;
  border-radius: 50%;
  background: rgba(125, 133, 129, .15);
  filter: blur(7px);
  z-index: 1;
}
.ready-loadout {
  min-width: 0;
  padding: clamp(6px, 2vh, 18px) 0 0 clamp(10px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  overflow: auto;
  scrollbar-width: thin;
}
.ready-loadout .section-title {
  margin-bottom: 12px;
}
.ready-loadout h3 {
  margin: 0;
}
.ready-loadout #aux-count {
  color: var(--accent);
  font-size: 14px;
}
.aux-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
  flex: none;
}
.aux-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  min-width: 0;
  min-height: clamp(40px, 10vh, 68px);
  padding: 6px 8px 6px 6px;
  border-bottom: 1px solid #dadcda;
  background: rgba(255, 255, 255, .5);
  border-radius: 3px;
}
.aux-card img {
  width: clamp(28px, 7.3vh, 48px);
  height: clamp(28px, 7.3vh, 48px);
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  filter: saturate(.75);
}
.aux-card b {
  min-width: 0;
  font-size: clamp(11px, 2.5vh, 15px);
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.aux-order {
  margin-left: auto;
  color: #707270;
  font-size: 12px;
  width: 17px;
  flex: none;
  text-align: center;
}
.aux-card:hover {
  background: #fff;
  color: var(--ink);
}
.aux-card.selected {
  background: #343c3f;
  border-color: #343c3f;
  color: #fff;
  box-shadow: inset 2px 0 var(--accent);
}
.aux-card.selected img {
  filter: none;
}
.aux-card.selected .aux-order {
  background: #f6c3bc;
  color: #7a3435;
  width: 17px;
  height: 17px;
  line-height: 17px;
  border-radius: 50%;
  font-weight: 600;
}
.aux-inspector {
  border-top: 1px solid #cccecc;
  margin-top: clamp(9px, 2vh, 18px);
  padding: 9px 0 6px;
  min-height: 64px;
  flex: none;
}
.aux-inspector > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.aux-inspector h4 {
  margin: 0;
  font-size: clamp(12px, 2.5vh, 16px);
  font-weight: 550;
}
#aux-preview-cd {
  font-size: 12px;
  color: #6d746f;
  font-variant-numeric: tabular-nums;
}
#aux-details {
  margin-left: auto;
  width: 29px;
  height: 28px;
  border-radius: 50%;
  font-size: 19px;
  padding: 0;
  background: rgba(255, 255, 255, .65);
  color: #4f5551;
}
.aux-inspector p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: clamp(11px, 2.4vh, 14px);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ready-footer {
  height: var(--foot);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
  padding: 8px var(--gutter);
  background: rgba(248, 249, 247, .85);
  border-top: 1px solid #dddfdd;
  backdrop-filter: blur(10px);
}
.growth-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.growth-control > label {
  font-size: clamp(12px, 2.7vh, 16px);
  color: #666967;
  white-space: nowrap;
}
.stepper {
  display: flex;
  height: 36px;
  align-items: center;
  border-bottom: 1px solid #b2b5b2;
}
.stepper button {
  font-size: 19px;
  width: 32px;
  height: 34px;
  padding: 0;
  color: #6c716d;
}
.stepper input {
  width: 42px !important;
  padding: 6px 0;
  text-align: center;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: 16px;
  -webkit-appearance: textfield;
  appearance: textfield;
  -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.card-config {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: clamp(12px, 2.7vh, 16px);
  white-space: nowrap;
  padding: 8px 0;
  color: var(--muted);
}
.card-config span {
  font-size: 19px;
}
.ready-footer > .primary {
  margin-left: auto;
  min-width: clamp(174px, 22vw, 260px);
  min-height: 40px;
  font-size: clamp(14px, 3vh, 20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 40, 43, .38);
  backdrop-filter: blur(12px);
  padding: 4vh 4vw;
}
.dialog-shell {
  width: min(800px, 92vw);
  max-height: 92vh;
  background: #f7f7f6;
  border: 1px solid #fff9;
  border-radius: 10px;
  box-shadow: 0 25px 70px rgba(17, 29, 36, .17);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: sheet-arrive .18s ease-out;
}
.dialog-shell > header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(12px, 2.7vh, 22px) 26px;
  border-bottom: 1px solid #dcdddb;
}
.dialog-shell h2 {
  font-size: clamp(19px, 3.8vh, 27px);
  font-weight: 600;
  margin: 0;
}
#dialog-close {
  width: 33px;
  height: 33px;
  font-size: 18px;
  padding: 0;
  border-radius: 50%;
  background: #e7e8e7;
  color: #6a6d6a;
}
#dialog-close:hover {
  color: #fff;
  background: #4f5351;
}
#dialog-body {
  padding: 20px 26px;
  font-size: 14px;
  line-height: 1.8;
  overflow: auto;
  overscroll-behavior: contain;
}
#dialog-body p {
  margin: 0 0 15px;
}
#dialog-body p:last-child {
  margin-bottom: 0;
}
[data-kind=settings] .dialog-shell,
[data-kind=manual] .dialog-shell {
  height: min(600px, 92vh);
}
[data-kind=settings] #dialog-body,
[data-kind=manual] #dialog-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.preferences {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.sheet-nav {
  display: flex;
  flex-direction: column;
  padding: 18px 0 18px 14px;
  border-right: 1px solid #dadcd9;
  background: #eaebea;
  gap: 5px;
  overflow: auto;
  scrollbar-width: thin;
}
.sheet-nav > button {
  position: relative;
  flex: none;
  text-align: left;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 4px 0 0 4px;
  color: #6e716d;
  line-height: 1.4;
}
.sheet-nav > button.selected {
  background: #f7f7f6;
  color: #292d2b;
  font-weight: 600;
}
.sheet-nav > button.selected:before {
  content: "";
  position: absolute;
  left: 0;
  top: 26%;
  bottom: 26%;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.sheet-content {
  min-width: 0;
  overflow: auto;
  padding: 22px 30px;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.sheet-content h3 {
  font-size: 19px;
  margin: 0 0 18px;
  font-weight: 600;
  color: #494d4a;
}
.sheet-content p {
  color: #717371;
  font-size: 14px;
  line-height: 1.9;
}
.setting-row {
  margin: 0;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 67px;
  border-bottom: 1px solid #dddfdc;
}
.setting-row label {
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  color: #4b4f4b;
}
.setting-row label > span {
  color: #6f7370;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.check-label {
  display: flex !important;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
  color: #5b5f59;
  font-size: 13px;
  line-height: 1.5;
}
.check-label input {
  margin: 0;
}
.switch-row {
  min-height: 54px;
  border-bottom: 1px solid #dddfdc;
  margin: 0;
  font-size: 15px;
  justify-content: space-between;
}
.switch-row input {
  appearance: none;
  -webkit-appearance: none;
  width: 36px;
  height: 22px;
  background: #cbcdca;
  border: 0;
  border-radius: 11px;
  position: relative;
  padding: 0;
  transition: background .15s;
}
.switch-row input:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fafaf9;
  border-radius: 50%;
  transition: transform .15s;
}
.switch-row input:checked {
  background: #656d67;
}
.switch-row input:checked:before {
  transform: translateX(14px);
}
.key-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px 18px;
  margin-bottom: 13px;
}
.key-table label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dedfdd;
  gap: 6px;
  font-size: 12px;
  min-height: 39px;
  color: #6f726e;
}
.key-table button {
  font-size: 13px;
  white-space: nowrap;
  background: #e4e6e2;
  padding: 5px 8px;
  border-radius: 3px;
  min-width: 33px;
  color: #404540;
}
.key-table button:hover {
  background: #d1d5cf;
}
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
}
.dialog-actions button {
  font-size: 14px;
  padding: 10px 15px;
}
[data-kind=settings] .dialog-actions {
  margin: 0;
  padding: 12px 24px;
  border-top: 1px solid #dddfdc;
  flex: none;
  background: #fafaf9;
}
#default-settings {
  margin-right: auto;
  color: #6e706c;
}
#settings-done {
  min-width: 115px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.layout-mini {
  height: clamp(80px, 22vh, 170px);
  position: relative;
  border-radius: 6px;
  margin-bottom: 12px;
  background: #e7e9e7;
  overflow: hidden;
}
.layout-mini:before {
  content: "";
  position: absolute;
  top: 20%;
  right: 27%;
  bottom: 20%;
  left: 27%;
  transform: skew(-12deg);
  background: #f3f4f1;
}
.layout-mini i {
  position: absolute;
  left: 9%;
  bottom: 18%;
  width: 60px;
  height: 60px;
  border: 1px solid #a4a9a3;
  border-radius: 50%;
  background: rgba(188, 192, 185, .314);
}
.layout-mini i:after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  left: 18px;
  border-radius: 50%;
  background: #8c9288;
}
.layout-mini img {
  position: absolute;
  width: 56px;
  height: 56px;
  object-fit: cover;
  right: 9%;
  bottom: 18%;
  border-radius: 50%;
  opacity: .8;
}
.layout-mini img:last-child {
  width: 35px;
  height: 35px;
  right: 22%;
  bottom: 53%;
  opacity: .5;
}
#edit-settings-layout {
  font-size: 14px;
  margin-top: 5px;
}
.skill-dialog {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.skill-dialog > img {
  width: clamp(70px, 14vw, 110px);
  height: clamp(70px, 14vw, 110px);
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.skill-cost {
  color: #6c726a;
  font-size: 13px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #d5d8d4;
}
#training-panel {
  position: absolute;
  right: max(14px, env(safe-area-inset-right));
  top: 68px;
  bottom: 14px;
  width: clamp(320px, 38vw, 480px);
  max-width: 48vw;
  background: rgba(246, 247, 245, .96);
  color: var(--ink);
  border: 1px solid #ffffffe0;
  border-radius: 12px;
  z-index: 20;
  box-shadow: 0 15px 40px rgba(8, 16, 24, .17);
  display: flex;
  flex-direction: column;
  touch-action: auto;
  backdrop-filter: blur(15px);
  overflow: hidden;
  animation: drawer-arrive .18s ease-out;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px;
}
.panel-head h3 {
  font-size: 21px;
  margin: 0;
  font-weight: 600;
}
.panel-head .quiet {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  background: #e5e7e4;
  color: #6d726b;
}
.tool-tabs {
  display: flex;
  padding: 0 20px;
  border-bottom: 1px solid #dcdeda;
  gap: 16px;
  flex: none;
}
.tool-tabs > button {
  padding: 10px 0;
  flex: 1;
  font-size: 14px;
  color: #6f726d;
  border-bottom: 2px solid transparent;
}
.tool-tabs > button.selected {
  color: #3d443e;
  border-color: var(--accent);
  font-weight: 600;
}
.panel-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 20px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #a5a9a2 transparent;
  touch-action: pan-y;
}
.panel-scroll .section-title {
  margin-bottom: 12px;
}
.panel-scroll h4 {
  font-size: 14px;
  color: #575d55;
}
.panel-scroll .section-title > span {
  font-size: 12px;
  color: #6f736e;
}
.panel-scroll label {
  display: block;
  font-size: 12px;
  color: #6f716c;
}
.panel-scroll input,
.panel-scroll select {
  width: 100%;
  margin: 5px 0 12px;
  font-size: 14px;
  padding: 8px 9px;
}
.panel-scroll .check-label {
  font-size: 12px;
  margin: 10px 0;
}
.panel-scroll .check-label input {
  width: 16px;
  height: 16px;
  flex: none;
  padding: 0;
  margin: 0 2px 0 0;
}
.input-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tool-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 12px 0;
}
.tool-buttons button {
  font-size: 12px;
  line-height: 1.4;
  padding: 11px 7px;
  border-radius: 4px;
  background: #e4e6e2;
  color: #4c5348;
}
.tool-buttons button:hover {
  background: #d4d8d1;
}
.tool-buttons button.danger {
  color: #aa5b50;
  background: #f0e4da;
}
.danger {
  color: #a35d50;
}
.wide {
  width: 100%;
  padding: 11px 12px;
  margin-top: 12px;
  font-size: 13px;
  background: #e2e5e0;
  border-radius: 4px;
  color: #4d5449;
}
.live-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  margin: 3px 0 15px;
}
.live-stats > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid #dcdfda;
  gap: 7px;
  font-size: 12px;
  color: #6d716b;
}
.live-stats b {
  font-size: 13px;
  font-weight: 550;
  color: #565e52;
  font-variant-numeric: tabular-nums;
}
.live-stats > div:last-child {
  grid-column: 1/-1;
}
.advanced {
  margin-top: 15px;
  border-top: 1px solid #cfd3cd;
}
.advanced summary {
  padding: 13px 0;
  cursor: pointer;
  font-size: 13px;
  color: #6d7267;
}
.advanced .wide {
  margin-top: 0;
}
.record-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  padding: 16px 0 20px;
  border-bottom: 1px solid #d0d3cd;
}
.record-hero > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.record-hero span {
  font-size: 12px;
  color: #6e736b;
}
.record-hero strong {
  font-size: clamp(27px, 6vh, 44px);
  font-weight: 450;
  line-height: 1;
  color: #4b5348;
  font-variant-numeric: tabular-nums;
}
.record-hero > div:last-child strong {
  color: #9c634f;
}
.damage-record dl {
  margin: 15px 0;
}
.damage-record dl > div {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #dcdfda;
  font-size: 12px;
}
.damage-record dt {
  color: #6e726a;
}
.damage-record dd {
  margin: 0;
  color: #565e52;
  font-variant-numeric: tabular-nums;
}
.tool-footer {
  border-top: 1px solid #dcdeda;
  padding: 9px 20px;
  text-align: right;
  background: #f9f9f7;
  flex: none;
}
.tool-footer button {
  font-size: 12px;
  padding: 7px 0;
  color: #9a644d;
}
.empty-pool {
  text-align: center;
  padding: 8px 0 12px;
}
.empty-pool > b {
  display: block;
  color: #6e726b;
  font-size: 16px;
  font-weight: 550;
}
.empty-pool p {
  color: #70746b;
  font-size: 13px;
}
.empty-pool button {
  font-size: 13px;
  color: #6e7468;
  padding: 10px 0;
  border-bottom: 1px solid #cdd2c9;
}
.empty-pool button span {
  margin-left: 15px;
}
.card-stack {
  height: 100px;
  width: 110px;
  position: relative;
  margin: 5px auto 20px;
}
.card-stack i {
  position: absolute;
  left: 20px;
  top: 8px;
  width: 70px;
  height: 88px;
  border: 1px solid #b7bcb3;
  border-radius: 6px;
  background: #e9ebe6;
  transform: rotate(-13deg);
}
.card-stack i:nth-child(2) {
  transform: rotate(13deg);
  background: #f2f3f0;
}
.card-stack i:last-child {
  transform: rotate(0);
  background: #f9f9f7;
  box-shadow: 0 3px 8px rgba(98, 104, 91, .063);
}
.card-stack i:last-child:after {
  content: "\2727";
  position: absolute;
  top: 15px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  color: #6d7565;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 30px;
}
#layout-editor {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  max-width: 44vw;
  max-height: calc(100% - 88px);
  overflow: auto;
  z-index: 30;
  padding: 15px 18px;
  border-radius: 10px;
  color: #686c65;
  background: rgba(243, 244, 242, .93);
  border: 1px solid #ffffffc0;
  backdrop-filter: blur(12px);
  touch-action: pan-y;
  scrollbar-width: thin;
}
#layout-editor > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d4d8d1;
}
#layout-editor b {
  font-size: 16px;
  font-weight: 600;
}
#edit-done {
  margin-left: auto;
  background: #535a4f;
  color: #fff;
  padding: 7px 13px;
  border-radius: 4px;
  font-size: 12px;
}
#layout-editor label {
  display: block;
  font-size: 12px;
  color: #6e726b;
  margin-top: 12px;
}
#layout-editor select {
  width: 100%;
  margin-top: 7px;
  font-size: 14px;
}
#layout-editor strong {
  float: right;
  color: #595f54;
  font-weight: 550;
}
#layout-editor input {
  display: block;
  margin-top: 5px;
  accent-color: #666e5f;
}
#layout-reset {
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  border-top: 1px solid #d1d5ce;
  color: #6e736a;
  font-size: 12px;
}
#game {
  background: #03080d;
  touch-action: auto;
  color: #eff3ef;
}
#arena {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.game-vignette {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  box-shadow: inset 0 0 70px rgba(1, 5, 10, .333);
}
#hud {
  position: absolute;
  top: 14px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.health-box {
  width: 29%;
  max-width: 420px;
  --vital:#7ee2d7;
  --vital-deep:#358fa2;
  --core:#8fc8f4;
  --core-deep:#4e81be;
}
.vital-frame {
  position: relative;
  padding: 8px 10px 9px;
  background:
    linear-gradient(
      110deg,
      rgba(10, 27, 41, .95),
      rgba(16, 29, 43, .863));
  border: 1px solid #8cafba54;
  border-radius: 4px 11px 4px 4px;
  box-shadow: 0 3px 12px rgba(1, 10, 18, .2), inset 0 1px rgba(192, 229, 237, .086);
}
.vital-frame:before {
  content: "";
  position: absolute;
  left: -1px;
  top: 11px;
  width: 2px;
  height: 20px;
  background: var(--vital);
  box-shadow: 0 0 7px rgba(128, 225, 210, .286);
}
.vital-frame:after {
  content: "";
  position: absolute;
  right: 8px;
  top: 3px;
  width: 19px;
  height: 2px;
  background: var(--vital);
  opacity: .65;
}
.health-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
  font-size: clamp(9px, 1.6vh, 12px);
  letter-spacing: .45px;
  color: #f1f5ef;
  line-height: 1.2;
}
.health-name b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}
.health-name span {
  flex: none;
  font-size: clamp(9px, 1.55vh, 11px);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: #d2e4e9;
  font-weight: 550;
}
.health-track {
  height: 16px;
  margin-top: 7px;
  position: relative;
  border: 1px solid #9fcbcf52;
  background: #030d15;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6);
  border-radius: 2px 5px 2px 2px;
  overflow: hidden;
}
.health-track i {
  display: block;
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 1px;
  max-width: calc(100% - 2px);
  width: 0;
  pointer-events: none;
}
.health-lag {
  background: #e9bc8a;
  opacity: .85;
}
.health-fill {
  background:
    linear-gradient(
      0deg,
      var(--vital-deep),
      var(--vital) 68%,
      #d6fff1);
  transition: width .09s linear;
  box-shadow: 0 0 8px rgba(114, 232, 209, .216);
}
.health-fill:after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e8fff0;
  box-shadow: 0 0 5px rgba(255, 255, 255, .6);
}
.health-track:after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  left: 1px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(10% - 1px),
      #08233266 calc(10% - 1px),
      #08233266 10%);
  pointer-events: none;
}
.core-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}
.core-track {
  height: 7px;
  position: relative;
  flex: 1;
  min-width: 0;
  background: #030d16;
  border: 1px solid #6d9abd5c;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .533);
}
.core-fill {
  display: block;
  position: absolute;
  inset: 1px auto 1px 1px;
  max-width: calc(100% - 2px);
  width: 0;
  background:
    linear-gradient(
      90deg,
      var(--core-deep),
      var(--core));
  transition: width .16s ease-out;
  box-shadow: 0 0 5px rgba(143, 200, 244, .12);
}
.core-mark {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: #182d3c;
  border: 1px solid #b2cbd97a;
  z-index: 1;
}
.skill-mark {
  left: 30%;
}
.ultimate-mark {
  right: -1px;
}
.core-line span {
  flex: none;
  min-width: 64px;
  font-size: clamp(9px, 1.5vh, 11px);
  line-height: 1;
  font-weight: 650;
  letter-spacing: .4px;
  color: #bbd5ef;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.skill-ready .skill-mark {
  background: #b8f2d9;
  border-color: #e5ffeb;
}
.ultimate-ready {
  --core:#ffe7b0;
  --core-deep:#c29960;
}
.ultimate-ready .core-track {
  border-color: rgba(211, 182, 126, .61);
  box-shadow: 0 0 8px rgba(236, 201, 121, .125);
}
.ultimate-ready .core-line span {
  color: #ffe4a6;
}
.ultimate-ready .ultimate-mark {
  background: #ffda8d;
  border-color: #fff0cb;
}
.low-health {
  --vital:#f29e83;
  --vital-deep:#a74856;
}
.low-health .health-name span {
  color: #ffd0c3;
}
.target-health {
  --vital:#f0bd8d;
  --vital-deep:#ae6b61;
  text-align: right;
}
.target-health.low-health {
  --vital:#f29e83;
  --vital-deep:#a74856;
}
.target-health .vital-frame {
  border-radius: 11px 4px 4px 4px;
  background:
    linear-gradient(
      250deg,
      rgba(10, 27, 41, .95),
      rgba(16, 29, 43, .863));
}
.target-health .vital-frame:before {
  left: auto;
  right: -1px;
}
.target-health .vital-frame:after {
  right: auto;
  left: 8px;
}
.target-health .health-name {
  flex-direction: row-reverse;
}
.target-health .health-track {
  border-radius: 5px 2px 2px 2px;
}
.target-health .health-track i {
  left: auto;
  right: 1px;
}
.target-health .health-fill:after {
  left: 0;
  right: auto;
}
.target-health .core-line {
  flex-direction: row-reverse;
}
.target-health .core-line span {
  text-align: left;
}
.target-health .core-fill {
  left: auto;
  right: 1px;
  background:
    linear-gradient(
      270deg,
      var(--core-deep),
      var(--core));
}
.target-health .skill-mark {
  left: auto;
  right: 30%;
}
.target-health .ultimate-mark {
  right: auto;
  left: -1px;
}
.health-box.empty .vital-frame {
  opacity: .5;
}
.status-list {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-content: flex-start;
  margin-top: 6px;
  max-height: 66px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  pointer-events: auto;
}
.status-list:empty {
  display: none;
}
.status-list::-webkit-scrollbar {
  display: none;
}
.target-health .status-list {
  justify-content: flex-end;
}
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  background: rgba(13, 36, 48, .93);
  border: 1px solid #6ba9ad60;
  border-radius: 3px;
  color: #d0eee4;
  font-size: clamp(9px, 1.45vh, 10px);
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.status-tag:before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #96d7c4;
  flex: none;
}
.status-tag.bad {
  background: rgba(50, 35, 43, .92);
  border-color: rgba(184, 120, 118, .43);
  color: #ffd4c8;
}
.status-tag.bad:before {
  background: #efa399;
}
.game-nav {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(23, 30, 27, .863);
  border: 1px solid #bac9bb2c;
  border-radius: 20px;
}
.game-nav button {
  padding: 6px 9px;
  font-size: 10px;
  color: #c3cdbf;
  border-radius: 16px;
  background: transparent;
  white-space: nowrap;
}
.game-nav button:hover,
.game-nav button.selected {
  background: rgba(106, 128, 113, .25);
  color: #fff;
}
#controls {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}
.control {
  position: absolute;
  pointer-events: auto;
  user-select: none;
  touch-action: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.action {
  border-radius: 50%;
  border: 1px solid #bfd0c18a;
  background: rgba(36, 50, 43, .133);
  padding: 0;
  overflow: visible;
  color: #f5f6ee;
}
.action:hover,
.action:active,
.action:focus-visible {
  color: #f5f6ee;
}
.action > span {
  color: #f5f6ee;
}
.action img {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 50%;
  object-fit: cover;
  opacity: var(--control-art-opacity,.42);
  transition: opacity .15s;
  pointer-events: none;
}
.action span {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 12%;
  font-size: clamp(8px, 1.35vh, 12px);
  font-weight: 500;
  line-height: 1.1;
  text-shadow: 0 1px 3px #000, 0 0 4px #000;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 0 2px;
  z-index: 3;
  pointer-events: none;
}
.action .cooldown {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  left: 4px;
  pointer-events: none;
  z-index: 2;
  display: none;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  transform: none;
}
.action .cd-label {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  font-size: clamp(16px, 3.5vh, 24px);
  font-weight: 650;
  z-index: 4;
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
}
.action.active {
  border-color: #e4ffff;
  box-shadow: 0 0 10px rgba(192, 222, 218, .29);
}
.action.unavailable img {
  filter: saturate(.2);
  opacity: calc(var(--control-art-opacity,.42)*.55);
}
#ctrl-attack {
  background: rgba(32, 43, 40, .91);
  border-color: #c4d8cf;
}
#ctrl-attack img,
#ctrl-attack.unavailable img {
  opacity: 1;
  filter: none;
}
#ctrl-attack.cooling img {
  filter: brightness(.6) saturate(.75);
}
.ultimate {
  border-color: #c4b6ee;
}
.auxiliary {
  border-color: #aab9a2;
}
.move-pad {
  border-radius: 50%;
  background: rgba(37, 52, 43, .27);
  border: 1px solid #9aae9c99;
  box-shadow: inset 0 0 0 12px rgba(97, 121, 132, .075);
}
.move-ring {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  left: 18px;
  border: 1px solid #c3d2bb40;
  border-radius: 50%;
}
.dir {
  position: absolute;
  font-size: 10px;
  color: #bdcdb5;
  pointer-events: none;
}
.dir.up {
  top: 8px;
  left: calc(50% - 5px);
}
.dir.down {
  bottom: 8px;
  left: calc(50% - 5px);
}
.dir.left {
  left: 8px;
  top: calc(50% - 5px);
}
.dir.right {
  right: 8px;
  top: calc(50% - 5px);
}
#move-stick {
  position: absolute;
  border-radius: 50%;
  background: rgba(120, 139, 114, .65);
  border: 1px solid #d0ddc7aa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .333);
  pointer-events: none;
}
.weapon-switch {
  position: absolute;
  border-radius: 50%;
  padding: 2px;
  border: 1px solid #b3c7b9;
  background: rgba(32, 43, 40, .93);
  pointer-events: auto;
  touch-action: none;
  z-index: 6;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color .12s;
}
.weapon-switch img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  opacity: 1;
  pointer-events: none;
}
.weapon-switch small {
  position: absolute;
  bottom: -3px;
  right: -1px;
  background: #23352c;
  color: #edf4e7;
  padding: 1px 3px;
  border-radius: 4px;
  font-size: 8px;
  pointer-events: none;
  white-space: nowrap;
}
.weapon-switch.locked {
  opacity: 1;
  border-color: #71858d;
}
.weapon-switch.queued {
  border-color: #ffdb93;
  box-shadow: 0 0 8px rgba(255, 189, 101, .4);
}
.weapon-switch:active {
  border-color: #f4ebce;
}
#aim-hint {
  display: none !important;
}
#pause-cover {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(20, 33, 27, .467);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 8;
  color: #eff6e9;
}
#pause-cover b {
  font-size: clamp(21px, 4vh, 32px);
  font-weight: 550;
  letter-spacing: 3px;
}
#placement-banner {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 14px;
  border: 1px solid #fff9;
  background: rgba(243, 248, 238, .925);
  color: #67835b;
  font-size: 12px;
  z-index: 25;
  white-space: nowrap;
  border-radius: 6px;
}
#placement-banner button {
  font-size: 12px;
  padding: 6px 11px;
  margin-left: 12px;
  background: #526d40;
  color: #fff;
  border-radius: 4px;
}
body.editing .control {
  outline: 1px dashed #cfded588;
  outline-offset: 4px;
  cursor: move;
}
body.editing .control.edit-selected {
  outline: 2px solid #ffe0a6;
  outline-offset: 5px;
}
#cancel-cast {
  position: absolute;
  right: 22px;
  top: 95px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  z-index: 15;
  background: rgba(37, 19, 26, .61);
  border: 1px solid #ed899799;
  color: #ffe3de;
  touch-action: none;
  user-select: none;
  padding: 0;
}
#cancel-cast b {
  display: block;
  font: 38px/46px system-ui;
  pointer-events: none;
}
#cancel-cast.armed {
  background: rgba(175, 53, 73, .78);
  border: 2px solid #ffe9d8;
  box-shadow: 0 0 22px rgba(255, 101, 117, .5);
  color: #fff9ed;
}
body.ultimate-active #hud,
body.ultimate-active .game-nav {
  opacity: .55;
  transition: opacity .4s;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 15px);
  background: rgba(245, 248, 240, .96);
  border: 1px solid #fff9;
  color: #576e46;
  padding: 10px 20px;
  font-size: 13px;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  max-width: 80vw;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(27, 49, 32, .137);
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#orientation-hint {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  background: #eff4e9;
  color: #526442;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 30px;
}
#orientation-hint > div {
  font-size: 60px;
  color: #859c6c;
  margin-bottom: 20px;
}
#orientation-hint b {
  font-size: 20px;
  font-weight: 600;
}
#orientation-hint p {
  font-size: 13px;
  color: #8a9c75;
  line-height: 1.8;
}
#orientation-hint button {
  padding: 12px 20px;
  margin-top: 15px;
  background: #526c3c;
  color: #fff;
  border-radius: 4px;
}
@keyframes menu-arrive {
  from {
    opacity: 0;
    margin-top: 8px;
  }
  to {
    opacity: 1;
    margin-top: 0;
  }
}
@keyframes sheet-arrive {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes drawer-arrive {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes tap-bloom {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(135deg) scale(6);
  }
}
@media (orientation: portrait) and (max-width: 850px) {
  #orientation-hint {
    display: none !important;
  }
}
@media (max-height: 500px) {
  :root {
    --gutter:3vw;
  }
  .menu-content {
    left: 62%;
    right: 4%;
  }
  .menu h1 {
    font-size: clamp(30px, 7.8vh, 42px);
    margin-bottom: 22px;
  }
  .menu-actions {
    gap: 6px;
  }
  .menu-actions > .vn-choice {
    font-size: clamp(19px, 5vh, 25px);
    min-height: 39px;
    padding: 7px 14px 7px 28px;
  }
  .menu-fullscreen {
    top: 10px;
    right: 15px;
    width: 34px;
    height: 34px;
    font-size: 23px;
  }
  .page-head {
    gap: 12px;
  }
  .page-head h2 {
    font-size: 20px;
  }
  .page-head .quiet {
    font-size: 13px;
  }
  .roster-panel {
    padding-right: 11px;
  }
  .roster-panel h3 {
    margin-bottom: 7px;
  }
  .roster-choice {
    gap: 7px;
    padding: 5px 7px 5px 0;
  }
  .ready-stats {
    padding: 9px 0;
  }
  .ready-stats > div {
    min-height: 30px;
    padding: 7px 3px;
  }
  .ready-stats strong {
    font-size: 20px;
  }
  .passive-button {
    padding: 7px 0;
  }
  .ready-loadout {
    padding-left: 12px;
  }
  .ready-loadout .section-title {
    margin-bottom: 8px;
  }
  .aux-grid {
    gap: 4px 7px;
  }
  .aux-card {
    gap: 6px;
    padding: 5px 6px;
    min-height: 40px;
  }
  .aux-card img {
    width: 30px;
    height: 30px;
  }
  .aux-card b {
    font-size: 12px;
  }
  .aux-order {
    width: 15px;
    font-size: 11px;
  }
  .aux-card.selected .aux-order {
    width: 15px;
    height: 15px;
    line-height: 15px;
  }
  .aux-inspector {
    margin-top: 8px;
    padding-top: 6px;
    min-height: 60px;
  }
  .aux-inspector p {
    font-size: 11px;
    margin-top: 2px;
  }
  .aux-inspector h4 {
    font-size: 12px;
  }
  .growth-control {
    gap: 8px;
  }
  .stepper {
    height: 32px;
  }
  .stepper input {
    font-size: 14px;
  }
  .stepper button {
    width: 26px;
    font-size: 17px;
  }
  .ready-footer {
    gap: 20px;
  }
  .ready-footer > .primary {
    padding: 10px 17px;
    font-size: 15px;
    min-width: 175px;
  }
  .ready-footer .card-config {
    font-size: 13px;
  }
  .dialog-shell > header {
    padding: 11px 20px;
  }
  .dialog-shell h2 {
    font-size: 20px;
  }
  #dialog-body {
    padding: 16px 20px;
    font-size: 13px;
  }
  .preferences {
    grid-template-columns: 135px minmax(0, 1fr);
  }
  .sheet-nav {
    padding: 10px 0 10px 10px;
    gap: 3px;
  }
  .sheet-nav > button {
    padding: 9px 12px;
    font-size: 13px;
  }
  .sheet-content {
    padding: 15px 23px;
  }
  .sheet-content h3 {
    font-size: 17px;
    margin-bottom: 9px;
  }
  .sheet-content p {
    font-size: 13px;
    line-height: 1.75;
  }
  .setting-row {
    min-height: 52px;
    gap: 15px;
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .setting-row label,
  .switch-row {
    font-size: 13px;
  }
  .switch-row {
    min-height: 43px;
  }
  .key-table {
    gap: 3px 12px;
  }
  .key-table label {
    min-height: 33px;
    font-size: 11px;
  }
  .key-table button {
    padding: 4px 7px;
    font-size: 12px;
  }
  .sheet-content .muted {
    font-size: 11px;
    margin-bottom: 0;
  }
  [data-kind=settings] .dialog-actions {
    padding: 9px 20px;
  }
  .dialog-actions button {
    font-size: 13px;
    padding: 8px 14px;
  }
  #training-panel {
    top: 62px;
    bottom: 10px;
  }
  .panel-head {
    padding: 10px 17px 7px;
  }
  .panel-head h3 {
    font-size: 18px;
  }
  .tool-tabs {
    padding: 0 17px;
    gap: 13px;
  }
  .tool-tabs > button {
    font-size: 12px;
    padding: 8px 0;
  }
  .panel-scroll {
    padding: 13px 17px;
  }
  .tool-footer {
    padding: 6px 17px;
  }
  .tool-buttons button {
    font-size: 11px;
    padding: 9px 5px;
  }
  #hud {
    top: 10px;
    left: 14px;
    right: 14px;
  }
  .health-box {
    width: 28%;
  }
  .health-name {
    font-size: 9px;
  }
  .health-name span {
    font-size: 8px;
  }
  .health-track {
    height: 14px;
  }
  .vital-frame {
    padding: 7px 8px;
  }
  .core-line {
    margin-top: 6px;
  }
  .game-nav button {
    padding: 5px 7px;
    font-size: 9px;
  }
  .game-nav {
    top: 9px;
  }
  .status-tag {
    font-size: 8px;
  }
  .action span {
    font-size: 8px;
  }
  #layout-editor {
    top: 62px;
    max-height: calc(100% - 73px);
    padding: 10px 14px;
    width: 280px;
  }
  #layout-editor > div {
    padding-bottom: 8px;
  }
  #layout-editor label {
    margin-top: 8px;
  }
  #layout-editor b {
    font-size: 14px;
  }
  #layout-reset {
    margin-top: 5px;
    padding: 7px;
  }
  #placement-banner {
    top: 61px;
  }
  #cancel-cast {
    top: 77px;
    right: 18px;
    width: 54px;
    height: 54px;
  }
  #cancel-cast b {
    font-size: 34px;
    line-height: 47px;
  }
}
@media (max-width: 740px) and (orientation: landscape) {
  .ready-room {
    grid-template-columns: 22% 31% 47%;
  }
  .roster-choice span {
    font-size: 11px;
  }
  .roster-choice img {
    width: 31px;
    height: 37px;
  }
  .aux-card b {
    font-size: 11px;
  }
  .aux-card img {
    width: 27px;
    height: 27px;
  }
  .aux-card {
    gap: 5px;
    padding: 5px 4px;
  }
  .ready-footer {
    gap: 12px;
  }
  .growth-control > label {
    font-size: 11px;
  }
  .card-config {
    gap: 6px;
    font-size: 11px !important;
  }
  .ready-footer > .primary {
    min-width: 160px;
    font-size: 13px;
  }
  .ready-footer > .primary > span {
    margin-left: 10px;
  }
  .menu-content {
    left: 61%;
    right: 3%;
  }
  .menu h1 {
    font-size: 30px;
  }
  .menu-actions > .vn-choice {
    font-size: 20px;
  }
  .preferences {
    grid-template-columns: 115px minmax(0, 1fr);
  }
  .sheet-content {
    padding: 13px 18px;
  }
  .sheet-nav > button {
    font-size: 12px;
    padding: 9px 10px;
  }
  .setting-row {
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 13px;
  }
}
@media (max-height: 380px) {
  :root {
    --head:44px;
    --foot:53px;
  }
  .ready-room {
    padding-top: 0;
  }
  .roster-panel,
  .ready-loadout {
    padding-top: 4px;
  }
  .ready-stats > div {
    min-height: 27px;
    padding: 5px 3px;
  }
  .ready-stats strong {
    font-size: 18px;
  }
  .roster-choice {
    min-height: 49px;
  }
  .roster-choice img {
    height: 36px;
    width: 33px;
  }
  .ready-stats {
    padding: 8px 0;
  }
  .passive-button {
    font-size: 11px;
    padding: 6px 0;
  }
  .aux-card {
    min-height: 36px;
  }
  .aux-card img {
    width: 27px;
    height: 27px;
  }
  .aux-inspector {
    min-height: 55px;
    margin-top: 6px;
  }
  .aux-inspector p {
    font-size: 11px;
  }
  .menu h1 {
    margin-bottom: 18px;
  }
  .menu-actions {
    gap: 4px;
  }
  .menu-actions > .vn-choice {
    min-height: 36px;
    font-size: 19px;
  }
  .sheet-content {
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .setting-row {
    min-height: 44px;
  }
  .switch-row {
    min-height: 35px;
  }
  .key-table label {
    min-height: 28px;
  }
  .layout-mini {
    height: 75px;
  }
  .layout-mini i {
    width: 46px;
    height: 46px;
  }
  .layout-mini i:after {
    top: 13px;
    right: 13px;
    bottom: 13px;
    left: 13px;
  }
  .layout-mini img {
    width: 42px;
    height: 42px;
  }
  .layout-mini img:last-child {
    width: 29px;
    height: 29px;
  }
  .sheet-content h3 {
    font-size: 16px;
    margin-bottom: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
#layout-preview {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  background: #18272e;
  color: #eaf0ec;
  isolation: isolate;
}
#layout-preview::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(#a4bcb30c 1px, transparent 1px),
    linear-gradient(
      90deg,
      #a4bcb30c 1px,
      transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.layout-preview-heading {
  position: absolute;
  top: 20px;
  left: 24px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  z-index: 2;
  pointer-events: none;
}
.layout-preview-heading b {
  font-size: 20px;
}
.layout-preview-heading span {
  font-size: 12px;
  color: #b1c4bf;
}
.layout-preview-guide {
  position: absolute;
  left: 50%;
  top: 63%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(130, 155, 149, .4);
  font-size: 12px;
  pointer-events: none;
}
.layout-preview-guide i {
  display: block;
  width: 44px;
  height: 83px;
  border: 1px solid #8ba69b44;
  border-radius: 24px 24px 7px 7px;
  margin: 0 auto 12px;
}
#cancel-cast {
  right: auto;
  display: grid;
  place-items: center;
  opacity: 1;
}
#cancel-cast b {
  font-size: clamp(28px, 5vh, 42px);
  line-height: 1;
}
body.editing #cancel-cast {
  opacity: 1;
}
#layout-preview #layout-editor {
  top: 65px;
}
@media (max-height: 420px) {
  .layout-preview-heading {
    top: 13px;
    left: 18px;
  }
  .layout-preview-heading b {
    font-size: 16px;
  }
  .layout-preview-heading span {
    font-size: 11px;
  }
  #layout-preview #layout-editor {
    top: 52px;
    max-height: calc(100% - 64px);
  }
}
html.orientation-dismissed #orientation-hint {
  display: none !important;
}
#orientation-hint #orientation-continue {
  background: transparent;
  color: #526c3c;
  border: 1px solid #a2b38e;
  margin-top: 10px;
}
.simulated-landscape :is(#online-screen, .panel-scroll, .card-library-grid, .owned-decks, .all-card-stats, .draft-choices, .card-description, .round-transition) {
  touch-action: none;
  overscroll-behavior: contain;
}
#dash-state {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  white-space: nowrap;
  color: rgba(210, 231, 223, .733);
  pointer-events: none;
}

/* dist/card-ui.css */
#card-screen {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  background: rgba(18, 37, 43, .91);
  backdrop-filter: blur(5px);
  color: #f7faf9;
  touch-action: pan-y;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  animation: cards-in .2s ease-out;
}
#card-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cards-header {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
  padding: clamp(10px, 3vh, 24px) clamp(18px, 4vw, 54px) 8px;
  min-height: 60px;
}
.cards-heading {
  display: flex;
  align-items: baseline;
  gap: 18px;
  min-width: 0;
}
.cards-heading h2 {
  margin: 0;
  font-size: clamp(20px, 4.7vh, 34px);
  white-space: nowrap;
  letter-spacing: .02em;
}
.cards-heading > span {
  font-size: clamp(11px, 2.4vh, 15px);
  color: #bfcecf;
  line-height: 1.4;
}
.cards-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}
.cards-actions > button {
  background: #f4f7f6;
  color: #263136;
  border-radius: 25px;
  padding: 9px 15px;
  font-weight: 650;
  font-size: clamp(12px, 2.6vh, 17px);
  white-space: nowrap;
  min-height: 38px;
}
.cards-actions > button:hover {
  background: #ffdf85;
}
.cards-actions > .cards-close {
  background: transparent;
  color: #8ce5db;
  font-size: 34px;
  line-height: 1;
  padding: 0;
  width: 44px;
  height: 44px;
  min-height: 44px;
}
.draft-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(30px, 9vw, 160px);
  font-size: 13px;
  flex: none;
  min-height: 25px;
  color: #d4e0de;
}
.round-quality {
  font-size: 13px;
  font-weight: 650;
  color: #b7ebff;
}
.round-quality.rarity-purple {
  color: #cfb2ff;
}
.round-quality.rarity-rainbow {
  color: #ffe49a;
}
.round-quality.rarity-equipment {
  color: #e7ccaa;
}
.draft-choices {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 42px);
  padding: 10px 24px 12px;
  perspective: 1200px;
}
.choice-card {
  display: block;
  position: relative;
  isolation: isolate;
  background: #f0f4ef;
  --quality:#71d9fa;
  --foil:linear-gradient(
      100deg,#86dcee,#aed9e9);
  border-radius: clamp(9px, 1.4vw, 20px);
  border: 1px solid #b5c6cc;
  padding: 0;
  aspect-ratio: 2/3;
  color: #293442;
  box-shadow: 0 10px 24px rgba(2, 12, 17, .24);
  transition:
    transform .2s,
    filter .2s,
    box-shadow .2s;
  overflow: hidden;
  text-align: center;
  touch-action: pan-y;
  flex: none;
}
.draft-choices > .choice-card {
  height: 100%;
  max-height: 540px;
  max-width: 27vw;
  width: auto;
  animation: card-deal .35s backwards;
}
.draft-choices > .choice-card:nth-child(1) {
  transform: rotate(-2deg);
  animation-delay: .04s;
}
.draft-choices > .choice-card:nth-child(2) {
  animation-delay: .1s;
}
.draft-choices > .choice-card:nth-child(3) {
  transform: rotate(2deg);
  animation-delay: .16s;
}
.choice-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background:
    linear-gradient(
      135deg,
      #29374c,
      #1b293b 68%,
      #263c49);
  clip-path: polygon(0 0, 100% 0, 100% 44%, 0 53%);
  pointer-events: none;
}
.choice-card::after {
  content: "";
  position: absolute;
  inset: 43% 0 auto;
  height: 11%;
  z-index: 1;
  clip-path: polygon(0 82%, 100% 0, 100% 17%, 0 100%);
  background: var(--foil);
  pointer-events: none;
}
.choice-card.rarity-blue {
  --quality:#71d9fa;
  --foil:linear-gradient(
      100deg,#6ecfea,#c4eff4);
}
.choice-card.rarity-purple {
  --quality:#c7a2ff;
  --foil:linear-gradient(
      100deg,#9775cf,#e7d6fa);
}
.choice-card.rarity-rainbow {
  --quality:#ffe19a;
  --foil:linear-gradient(
      100deg,#8edccc,#a9ccee 30%,#d5b7e9 62%,#f6d890);
}
.choice-card.rarity-equipment {
  --quality:#e5c594;
  --foil:linear-gradient(
      100deg,#ba9565,#edd9b3);
}
.choice-card:hover {
  color: #293442;
  filter: brightness(1.06);
  box-shadow: 0 15px 30px rgba(3, 13, 20, .314);
}
.choice-card.selected {
  outline: 3px solid #ffe879;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 232, 121, .094), 0 16px 32px rgba(6, 16, 24, .376);
  transform: translateY(-3px) !important;
}
.choice-card .card-kind {
  position: absolute;
  right: 7%;
  top: 5%;
  font-size: clamp(10px, 2.2vh, 14px);
  color: rgba(219, 228, 242, .79);
  border: 1px solid #dbe4f238;
  border-radius: 5px;
  padding: 2px 6px;
  letter-spacing: .02em;
  z-index: 3;
}
.card-emblem {
  position: absolute;
  left: 18%;
  top: 8%;
  width: 64%;
  height: 42.667%;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
}
.card-emblem svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.card-copy {
  position: absolute;
  z-index: 2;
  top: 53%;
  left: 8%;
  right: 8%;
  bottom: 8%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
}
.card-copy > strong {
  font-size: clamp(17px, 3.8vh, 30px);
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: -.04em;
  color: #253142;
}
.card-tags {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex: none;
}
.card-tags i {
  font-style: normal;
  white-space: nowrap;
  background: #8176aa;
  color: #fff;
  padding: 2px 9px;
  border-radius: 15px;
  font-size: clamp(10px, 2.1vh, 13px);
  line-height: 1.2;
}
.rarity-blue .card-tags i {
  background: #5e9ebd;
}
.rarity-equipment .card-tags i {
  background: #a68a61;
}
.card-description {
  font-size: clamp(12px, 2.65vh, 17px);
  font-weight: 600;
  line-height: 1.43;
  text-align: left;
  overflow: auto;
  width: 100%;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  color: #34404d;
  overflow-wrap: anywhere;
  padding: 1px 0;
  overscroll-behavior: contain;
}
.card-quality {
  position: absolute;
  z-index: 2;
  left: 8%;
  bottom: 3.7%;
  font-size: 10px;
  line-height: 1;
  color: rgba(107, 118, 145, .49);
}
.card-check {
  display: none;
  position: absolute;
  z-index: 4;
  left: 7%;
  top: 5%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffe77b;
  color: #28323b;
  font-size: 17px;
  font-weight: 800;
  place-items: center;
}
.selected > .card-check {
  display: grid;
}
.cards-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 40px);
  padding: 0 24px clamp(10px, 3vh, 24px);
  min-height: 60px;
  flex: none;
}
.card-confirm {
  background: #ffe77c;
  color: #283035;
  border-radius: 30px;
  min-width: 190px;
  min-height: 44px;
  padding: 10px 30px;
  font-size: clamp(17px, 3.8vh, 25px);
  font-weight: 800;
  box-shadow: 0 4px 0 #c8b654, 0 6px 16px rgba(6, 12, 21, .145);
}
.card-confirm:hover {
  color: #182328;
  background: #fff09c;
}
.card-confirm:disabled {
  opacity: .42;
  box-shadow: none;
}
.card-confirm > span {
  margin-left: 18px;
}
.draft-refresh {
  border: 1px solid #eef9f454;
  color: #e7f5f0;
  border-radius: 22px;
  min-height: 40px;
  padding: 8px 17px;
  font-size: 14px;
}
.draft-refresh > span {
  display: inline-grid;
  place-items: center;
  background: #e6f3ee;
  color: #1d343d;
  border-radius: 20px;
  min-width: 25px;
  margin-left: 9px;
  padding: 2px 5px;
  font-variant-numeric: tabular-nums;
}
.draft-phase {
  font-size: 13px;
  color: #a8bfbe;
  font-variant-numeric: tabular-nums;
}
.draft-empty {
  text-align: center;
  align-self: center;
  color: #dce7e5;
  max-width: 440px;
  font-size: 15px;
}
.draft-empty button {
  padding: 10px 18px;
  background: #fff;
  color: #23353a;
  border-radius: 20px;
}
.card-library-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px clamp(18px, 4vw, 54px) 14px;
  flex: none;
  border-bottom: 1px solid #bfd6d321;
}
.card-side-tabs,
.card-filter-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.card-side-tabs > button,
.card-filter-tabs > button {
  padding: 7px 10px;
  border-radius: 16px;
  color: #c7d6d6;
  font-size: 13px;
}
.card-side-tabs > button.selected {
  background: #f5f8f6;
  color: #25333c;
  font-weight: 650;
}
.card-filter-tabs > button.selected {
  background: #374950;
  color: #fff;
}
#card-search {
  margin-left: auto;
  max-width: 220px;
  width: 20vw;
  background: #f3f8f5;
  color: #27343a;
  border: 0;
  border-radius: 18px;
  font-size: 13px;
  padding: 8px 14px;
}
.card-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px 16px;
  padding: 18px clamp(18px, 4vw, 54px);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  align-content: start;
  scrollbar-width: thin;
}
.library-card {
  min-width: 0;
  position: relative;
}
.library-card > .choice-card {
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  box-shadow: 0 4px 10px rgba(6, 20, 25, .15);
}
.compact .card-kind {
  font-size: 10px;
  padding: 1px 4px;
}
.compact .card-copy > strong {
  font-size: clamp(15px, 2.6vh, 21px);
}
.compact .card-description {
  font-size: clamp(11px, 2.2vh, 13px);
  line-height: 1.4;
  font-weight: 550;
}
.compact .card-tags i {
  font-size: 10px;
  padding: 2px 7px;
}
.compact .card-copy {
  gap: 4px;
}
.library-card-state {
  display: block;
  text-align: center;
  font-size: 11px;
  min-height: 20px;
  padding-top: 7px;
  color: #becfcf;
}
.library-card.held .library-card-state {
  color: #ffe8a5;
}
.library-card.family-held {
  opacity: .45;
}
.library-footer {
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid #bfd6d321;
  gap: 18px;
}
.library-footer > span {
  margin-right: auto;
  color: #b2c9c7;
  font-size: 12px;
}
.library-footer .quiet {
  color: #cee1dc;
}
.library-footer .card-confirm {
  font-size: 17px;
  min-width: 145px;
  min-height: 38px;
  padding: 8px 20px;
}
.owned-decks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 0;
  gap: 30px;
  padding: 4px clamp(18px, 4vw, 54px) 20px;
  overflow: auto;
  scrollbar-width: thin;
}
.owned-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 12px;
  border-bottom: 1px solid #bfd6d338;
  margin-bottom: 16px;
}
.owned-heading h3 {
  font-size: 18px;
  margin: 0;
}
.owned-heading > span {
  color: #b9d0ce;
  font-size: 13px;
}
.owned-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  align-content: start;
}
.owned-card-grid > .choice-card {
  width: 100%;
}
.cards-empty {
  text-align: center;
  padding: 40px 8px;
  color: #b7cdca;
  font-size: 15px;
  grid-column: 1/-1;
}
.stats-side-tabs {
  padding: 4px clamp(18px, 4vw, 54px) 12px;
}
.all-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
  padding: 4px clamp(18px, 4vw, 54px) 24px;
  overflow: auto;
  min-height: 0;
  flex: 1;
  align-content: start;
  scrollbar-width: thin;
}
.all-card-stats > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 73px;
  padding: 10px 0;
  border-bottom: 1px solid #b5cecb2a;
}
.all-card-stats span {
  font-size: 12px;
  color: #b9cfcd;
}
.all-card-stats strong {
  font-size: clamp(16px, 3.7vh, 24px);
  line-height: 1.35;
  font-weight: 550;
  color: #f9f7e9;
  font-variant-numeric: tabular-nums;
}
.round-transition {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 12px 24px 24px;
  text-align: center;
  overflow: auto;
}
.round-number {
  font-size: clamp(34px, 9vh, 70px);
  font-weight: 750;
  color: #fff5c8;
}
.round-number > span {
  margin: 0 28px;
  color: #85c6c4;
  font-size: .7em;
}
.round-transition h3 {
  font-size: 22px;
  margin: 8px 0;
}
.round-transition p {
  font-size: 14px;
  color: #b7ceca;
  max-width: 550px;
  line-height: 1.7;
}
.round-result-buttons {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.round-result-buttons > button {
  background: #f4f7f3;
  color: #28383a;
  border-radius: 10px;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 750;
  min-width: 170px;
}
.round-result-buttons span {
  display: block;
  font-size: 11px;
  font-weight: 450;
  color: #697977;
  margin-top: 8px;
}
.card-tool-summary {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #414b4a;
}
.card-tool-summary strong {
  font-size: 22px;
  font-weight: 550;
}
.card-tool-summary span {
  font-size: 13px;
  color: #737e79;
}
.card-tool-actions {
  display: grid;
  gap: 9px;
}
.card-tool-actions button {
  padding: 12px 16px;
  border-radius: 6px;
  text-align: left;
  background: #e9ebe4;
  color: #3d4641;
  font-size: 14px;
  font-weight: 550;
}
.game-round-label {
  position: absolute;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  color: #d6e1d9;
  font-size: 11px;
  letter-spacing: .5px;
  pointer-events: none;
  text-shadow: 0 1px 3px #000;
}
.game-nav {
  flex-wrap: wrap;
  justify-content: center;
  max-width: 40%;
  gap: 4px;
}
.game-nav button {
  font-size: 11px;
  padding: 5px 7px;
  white-space: nowrap;
}
@keyframes card-deal {
  from {
    opacity: 0;
    transform: translateY(15px) scale(.94);
  }
}
@keyframes cards-in {
  from {
    opacity: 0;
  }
}
@media (max-height: 420px) {
  .cards-header {
    min-height: 46px;
    padding-top: 7px;
    padding-bottom: 4px;
  }
  .cards-actions > button {
    min-height: 32px;
    padding: 6px 11px;
    font-size: 12px;
  }
  .cards-actions > .cards-close {
    width: 38px;
    height: 38px;
    min-height: 38px;
    font-size: 30px;
  }
  .cards-heading {
    gap: 10px;
  }
  .cards-footer {
    min-height: 50px;
    padding-bottom: 9px;
  }
  .card-confirm {
    min-height: 38px;
    padding: 8px 25px;
    min-width: 155px;
    font-size: 20px;
  }
  .draft-topline {
    min-height: 21px;
    font-size: 11px;
  }
  .draft-choices {
    padding-top: 7px;
    padding-bottom: 8px;
  }
  .card-copy {
    gap: 3px;
  }
  .card-copy > strong {
    font-size: 18px;
  }
  .card-description {
    font-size: 12px;
    line-height: 1.35;
  }
  .card-tags i {
    font-size: 10px;
  }
  .card-library-bar {
    padding-top: 5px;
    padding-bottom: 8px;
    gap: 8px;
  }
  .card-side-tabs > button,
  .card-filter-tabs > button {
    font-size: 11px;
    padding: 5px 8px;
  }
  .card-library-grid {
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 15px;
    padding-top: 13px;
  }
  .library-footer > span {
    font-size: 11px;
  }
  .all-card-stats > div {
    min-height: 61px;
  }
  .all-card-stats strong {
    font-size: 17px;
  }
  .game-round-label {
    top: 78px;
  }
  .round-result-buttons > button {
    padding: 12px 16px;
    font-size: 16px;
    min-width: 150px;
  }
  .round-transition h3 {
    font-size: 18px;
    margin: 3px;
  }
  .round-transition p {
    margin: 5px;
    font-size: 12px;
  }
}
@media (max-width: 740px) {
  .cards-heading > span {
    max-width: 140px;
    font-size: 10px;
  }
  .cards-header {
    gap: 8px;
    padding-left: 16px;
    padding-right: 12px;
  }
  .cards-actions {
    gap: 5px;
  }
  .cards-actions > button {
    padding-left: 8px;
    padding-right: 8px;
  }
  .card-library-bar {
    flex-wrap: wrap;
    gap: 3px 10px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .card-filter-tabs {
    margin-left: auto;
  }
  #card-search {
    width: 100%;
    max-width: none;
    margin-left: 0;
    height: 30px;
  }
  .draft-choices {
    gap: 14px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .owned-decks {
    gap: 18px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .owned-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  }
  .library-footer > span {
    max-width: 180px;
    line-height: 1.4;
  }
  .all-card-stats {
    gap: 0 18px;
  }
  .game-nav {
    max-width: 42%;
  }
  .game-nav button {
    padding: 4px 5px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #card-screen,
  .draft-choices > .choice-card {
    animation: none;
  }
  .choice-card {
    transition: none;
  }
}
.choice-card::before {
  clip-path: polygon(0 0, 100% 0, 100% 28%, 0 36%);
}
.choice-card::after {
  top: 27%;
  height: 10%;
}
.card-emblem {
  top: 3%;
  left: 30%;
  width: 40%;
  height: 28%;
}
.card-copy {
  top: 37%;
  bottom: 7%;
  left: 7%;
  right: 7%;
}
.card-copy > strong {
  font-size: clamp(17px, 3.4vh, 26px);
}
.card-description {
  font-size: clamp(12px, 2.6vh, 16px);
  line-height: 1.4;
}
.draft-choices {
  align-items: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
}
.draft-choices > .choice-card {
  height: 100%;
  min-height: 265px;
  max-width: 27vw;
  aspect-ratio: 2/3;
}
.library-card > .choice-card,
.owned-card-grid > .choice-card {
  height: auto;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  min-height: 245px;
}
.compact::before {
  inset: 0 0 auto;
  height: 104px;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
}
.compact::after {
  top: 81px;
  height: 24px;
}
.compact .card-emblem {
  top: 7px;
  left: calc(50% - 39px);
  width: 78px;
  height: 78px;
}
.compact .card-kind {
  top: 7px;
  right: 6px;
  font-size: 9px;
}
.compact .card-copy {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  margin: 112px 10px 30px;
  gap: 6px;
  flex: 1;
}
.compact .card-copy > strong {
  font-size: clamp(15px, 2.6vh, 19px);
  white-space: normal;
  line-height: 1.2;
}
.compact .card-description {
  overflow: visible;
  flex: none;
  font-size: 12px;
  line-height: 1.5;
  min-height: 54px;
}
.compact .card-quality {
  bottom: 12px;
  font-size: 10px;
}
@media (max-height: 420px) {
  .card-copy {
    gap: 3px;
  }
  .card-copy > strong {
    font-size: 17px;
  }
  .card-description {
    font-size: 12px;
    line-height: 1.35;
  }
  .draft-choices > .choice-card {
    min-height: 265px;
  }
  .compact .card-description {
    font-size: 12px;
    line-height: 1.5;
  }
}
.draft-choices .card-description {
  overflow: visible;
  flex: none;
}
.draft-choices .long-effect .card-description {
  overflow: auto;
  flex: 1;
}
@media (max-height: 420px) {
  .draft-choices > .choice-card {
    min-height: 225px;
  }
  .draft-choices > .choice-card::before {
    clip-path: polygon(0 0, 100% 0, 100% 24%, 0 30%);
  }
  .draft-choices > .choice-card::after {
    top: 23%;
    height: 8%;
  }
  .draft-choices .card-emblem {
    top: 2%;
    height: 23%;
    width: 35%;
    left: 32.5%;
  }
  .draft-choices .card-copy {
    top: 31%;
    bottom: 6%;
  }
}
@media (max-height: 350px) {
  .draft-choices > .choice-card {
    min-height: 210px;
  }
  .cards-header {
    min-height: 38px;
    padding-top: 3px;
  }
  .cards-footer {
    min-height: 44px;
    padding-bottom: 5px;
  }
  .draft-topline {
    min-height: 18px;
  }
  .draft-choices {
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

/* dist/online.css */
#online-screen {
  overflow-y: auto;
  background: #f2f4f1;
  color: #26373b;
  padding-bottom: 24px;
}
#online-screen button {
  touch-action: manipulation;
}
#online-screen input,
#online-screen select {
  font: inherit;
  background: #fff;
  border: 1px solid #ccd6d8;
  border-radius: 8px;
  padding: 10px;
  color: #253840;
}
#online-screen .page-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(242, 244, 241, .93);
  backdrop-filter: blur(12px);
  gap: 12px;
}
.net-room-code {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.net-room-code b {
  font-size: 22px;
  letter-spacing: 3px;
}
.net-entry {
  max-width: 1050px;
  margin: 25px auto;
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 40px;
  align-items: center;
  padding: 24px;
}
.net-entry-icon {
  width: 100%;
  border-radius: 25%;
  box-shadow: 0 15px 40px rgba(143, 166, 185, .15);
}
.net-entry h2 {
  font-size: clamp(22px, 3vw, 38px);
  margin: 8px 0 22px;
}
.net-eyebrow,
.net-note {
  font-size: 12px;
  color: #687c83;
}
.net-entry label {
  display: grid;
  gap: 7px;
  margin: 15px 0;
}
.net-entry-actions {
  display: flex;
  gap: 10px;
}
.net-entry-actions button {
  flex: 1;
  padding: 13px;
}
.net-lobby {
  max-width: 1440px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  margin: auto;
  padding: 18px 28px;
}
.net-roster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.net-player {
  min-width: 0;
  text-align: center;
  background: #e5edf0;
  border-radius: 18px;
  padding: 12px;
  position: relative;
}
.net-player.self {
  background: #e9eddf;
}
.net-player-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #647a83;
}
.net-player-head b {
  color: #417a71;
}
.net-portrait {
  height: clamp(90px, 28vh, 230px);
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px #50646f20);
}
.net-player h3 {
  margin: 5px;
}
.net-player > strong {
  font-size: 12px;
}
.net-aux-tags {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 11px;
  margin: 10px 0;
}
.net-aux-tags span {
  background: rgba(255, 255, 255, .5);
  padding: 5px 8px;
  border-radius: 5px;
}
.net-config h3 {
  margin: 6px 0 10px;
  font-size: 15px;
}
.net-config h3 small {
  font-weight: 400;
  color: #6a7a80;
}
.net-character {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 6px;
}
.net-character img {
  width: 50px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}
.net-character span {
  margin-left: auto;
  font-size: 11px;
}
.net-aux-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.net-aux-grid button {
  text-align: left;
  padding: 7px 9px;
  border: 1px solid #d2dbd8;
  border-radius: 8px;
}
.net-aux-grid b {
  display: block;
  font-size: 12px;
}
.net-aux-grid span {
  display: block;
  font-size: 10px;
  color: #66787c;
  margin-top: 4px;
}
.net-aux-grid button.selected {
  background: #e1edec;
  border-color: #739a98;
}
.net-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
  font-size: 12px;
}
.net-target select {
  padding: 6px !important;
}
.net-target > span {
  color: #718086;
  font-size: 11px;
}
#net-ready {
  width: 100%;
  padding: 12px;
}
.net-draft-top,
.net-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
}
.net-draft-top {
  font-size: 13px;
}
.net-draft-top > div {
  display: flex;
  gap: 8px;
}
.net-done {
  font-size: 11px;
  padding: 6px;
  background: #e4e8e6;
  border-radius: 6px;
}
.net-done.selected {
  background: #d5e9df;
  color: #28634d;
}
.net-choices {
  height: clamp(200px, 43vh, 380px);
  max-width: 1000px;
  margin: 0 auto;
  padding: 5px 24px;
  gap: 15px;
}
.net-choices .choice-card {
  height: 100%;
  min-height: 0;
}
.net-choices .card-copy {
  height: 63%;
}
.net-choices .card-emblem {
  height: 28%;
}
.net-choices .card-description {
  font-size: 12px;
}
.net-draft-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px;
}
.net-panel-heading h3 {
  font-size: 16px;
}
.net-panel-heading > div {
  display: flex;
  gap: 7px;
}
.net-panel-heading button {
  font-size: 12px;
  padding: 8px;
}
.net-decks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 0 24px;
}
.net-decks > section,
.net-final-stats > section {
  background: rgba(255, 255, 255, .66);
  border: 1px solid #dce2dc;
  border-radius: 12px;
  padding: 14px;
  min-width: 0;
}
.net-deck-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.net-deck-title h3 {
  font-size: 14px;
  margin: 0;
}
.net-deck-title small {
  font-weight: 400;
  color: #65787d;
  font-size: 11px;
}
.net-deck-title > b {
  font-size: 12px;
}
.net-owned-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.net-owned-cards .choice-card {
  pointer-events: none;
  min-height: 205px;
}
.net-owned-cards .card-copy {
  height: auto;
  flex: 1;
}
.net-owned-cards .card-description {
  max-height: none;
  overflow: visible;
  font-size: 11px;
}
.net-owned-cards .card-emblem {
  height: 60px;
}
.net-owned-cards .card-quality {
  font-size: 9px;
}
.net-stat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.net-stat-list > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #e1e7e4;
  padding: 8px 0;
  font-size: 11px;
}
.net-stat-list b {
  font-size: 11px;
  text-align: right;
}
.net-result-hero {
  position: relative;
  margin: 12px 24px;
  height: 190px;
  border-radius: 15px;
  overflow: hidden;
  background: #e4edf3;
}
.net-result-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .8;
}
.net-result-hero > div {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, .27);
  text-shadow: 0 2px 12px #fff;
}
.net-result-hero h1 {
  font-size: 42px;
  margin: 0;
}
.net-result-hero p {
  font-size: 10px;
  letter-spacing: 3px;
}
.net-result-hero strong {
  font-size: 30px;
  letter-spacing: 8px;
}
.net-result-hero span {
  font-size: 12px;
}
.net-output {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 12px 24px;
}
.net-output > div {
  background: #e4ebe3;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.net-output span {
  font-size: 12px;
}
.net-output strong {
  font-size: 24px;
}
.net-rematch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 12px;
}
.net-rematch label,
.net-rematch p {
  font-size: 13px;
}
.net-final-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 24px;
}
.net-final-stats h3 {
  font-size: 14px;
}
#online-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  pointer-events: none;
}
.net-live {
  position: absolute;
  top: 49px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #d6e5e2;
  background: rgba(23, 38, 43, .79);
  padding: 5px 12px;
  border-radius: 8px;
}
.net-battle-banner,
.net-banner {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  padding: 25px 45px;
  border: 1px solid #d5e5e6;
  background: rgba(237, 245, 242, .93);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(16, 29, 41, .17);
}
.net-banner {
  top: 20%;
  font-size: 14px;
}
.net-battle-banner strong {
  font-size: 25px;
}
.online-playing #training-toggle,
.online-playing #next-round,
.online-playing #layout-toggle,
.online-playing #pause-toggle {
  display: none;
}
.online-spectator #controls,
.online-spectator #cancel-cast,
.online-spectator #aim-hint,
.online-spectator #game-cards,
.online-spectator #game-stats {
  display: none !important;
}
.online-playing #pause-cover {
  display: none !important;
}
.online-playing .game-nav {
  right: 12px;
  top: 12px;
}
.online-playing #hud {
  pointer-events: none;
}
.online-playing #card-screen [data-card-action=library],
.online-playing #card-screen [data-card-action=draft] {
  display: none !important;
}
@media (max-height: 500px) {
  .net-lobby {
    padding: 8px 16px;
    gap: 15px;
  }
  .net-portrait {
    height: 130px;
  }
  .net-aux-grid button {
    padding: 5px 7px;
  }
  .net-aux-grid span {
    font-size: 9px;
  }
  .net-entry {
    margin: 0 auto;
    gap: 25px;
    padding: 15px 35px;
  }
  .net-entry-icon {
    max-height: 230px;
    object-fit: contain;
  }
  .net-entry h2 {
    margin: 4px 0 10px;
  }
  .net-entry label {
    margin: 8px 0;
  }
  .net-entry input {
    padding: 7px !important;
  }
  .net-entry-actions button {
    padding: 9px;
  }
  .net-choices {
    height: 240px;
  }
  .net-result-hero {
    height: 150px;
  }
  .net-stat-list {
    grid-template-columns: 1fr;
  }
  .net-target {
    margin: 8px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #online-screen * {
    animation: none !important;
    transition: none !important;
  }
}
.net-owned-cards {
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  align-items: start;
}
.net-owned-cards > .choice-card {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  min-height: 245px;
  max-width: 220px;
}
.net-choices .card-copy {
  height: auto;
}
.net-panel-heading {
  position: sticky;
  top: 64px;
  z-index: 1;
  background: #f2f4f1;
}
#online-screen {
  overflow-anchor: none;
  scroll-behavior: auto;
}
#net-choices {
  overflow-anchor: none;
}
.net-live,
.net-banner {
  top: auto;
  left: auto;
  right: max(8px, env(safe-area-inset-right));
  bottom: max(6px, env(safe-area-inset-bottom));
  transform: none;
  max-width: min(38vw, 290px);
  padding: 3px 6px;
  border: 0;
  border-radius: 4px;
  background: rgba(20, 37, 42, .4);
  box-shadow: none;
  color: #cce0dc;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.4;
  text-align: right;
  opacity: .68;
  pointer-events: none;
}
.net-banner {
  font-size: 11px;
  opacity: .85;
}
.net-live #net-ping {
  overflow-wrap: anywhere;
}

/* dist/sr.css */
.menu-character {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 60%;
  z-index: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: #3b5366;
}
.menu-content {
  animation: none;
}
.menu-roster-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: clamp(12px, 2.3vh, 20px);
  letter-spacing: .12em;
  padding: 9px 0;
  margin-top: -16px;
  margin-bottom: 15px;
  border-bottom: 1px solid #81949d55;
  color: #526873;
  background: none;
  border-radius: 0;
}
.menu-roster-button:hover {
  color: #172d40;
  border-color: #a88951;
}
.menu-character:focus-visible {
  outline: 2px solid #b0cfe5;
  outline-offset: -12px;
}
.preview-version {
  position: absolute;
  right: 18px;
  bottom: 12px;
  font: 10px/1.5 system-ui;
  color: #6b7f87;
  pointer-events: none;
}
body[data-menu-character=sukeru-realisyp] #menu {
  background: #edf1f2 url(assets/sr-menu-backdrop.svg) center/cover no-repeat;
}
body[data-menu-character=sukeru-realisyp] #menu-image {
  width: 60%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
}
body[data-menu-character=sukeru-realisyp] .choice-sigil {
  color: #c29b59;
}
body[data-menu-character=sukeru-realisyp] .ready-stage {
  background: #e6edf1;
}
body[data-menu-character=sukeru-realisyp] #ready-portrait {
  object-fit: contain;
}
.net-character-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.net-character:not(.selected) {
  opacity: .65;
}
.net-character.selected {
  outline: 2px solid #b9d9e7;
}
.status-tag[data-status-key^=sr],
.status-tag[data-status-key=armorBreak] {
  border-color: rgba(183, 209, 228, .467);
}
.status-tag[data-status-key=erased] {
  background: #423c56;
  color: #f3dfff;
}
body.sr-cinematic #controls {
  opacity: .065;
  pointer-events: none;
}
body.sr-cinematic #round-label {
  visibility: hidden;
}
body.sr-cinematic .game-nav {
  opacity: .18;
}
body.sr-cinematic #hud {
  opacity: .55;
}
#character-select {
  background: #e9eef1;
  color: #273e51;
  isolation: isolate;
  overflow: hidden;
}
.select-head {
  height: 13vh;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 4vw;
  border-bottom: 1px solid #708d9d33;
  background: #f7f9f8;
  position: relative;
  z-index: 2;
}
.select-head > div {
  display: flex;
  align-items: baseline;
  gap: 24px;
}
.select-head small {
  font: 10px Georgia, serif;
  letter-spacing: .18em;
  color: #788f9d;
}
.select-head h2 {
  font-size: clamp(18px, 3.6vh, 30px);
  margin: 0;
}
.select-head > span {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: .25em;
  color: #7e96a2;
}
.select-layout {
  height: 74vh;
  display: grid;
  grid-template-columns: 47% 53%;
  max-width: 1500px;
  margin: auto;
}
.select-art {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border-right: 1px solid #718e9d33;
}
.select-art > img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  object-position: center center;
}
.select-art figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 22px 5vw 16px;
  background:
    linear-gradient(
      0deg,
      rgba(255, 255, 255, .96),
      rgba(255, 255, 255, .91) 55%,
      rgba(255, 255, 255, 0));
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
.select-art figcaption > span {
  font: 10px Georgia, serif;
  letter-spacing: .2em;
  color: #7891a2;
}
.select-art figcaption > strong {
  font: 600 clamp(20px, 4.3vh, 38px) Georgia, serif;
  color: #304c64;
}
.select-art figcaption > small {
  font-size: 11px;
  letter-spacing: .3em;
  color: #758b98;
}
.select-files {
  padding: 2.5vh 3.3vw 0;
  overflow: auto;
  scrollbar-width: thin;
  touch-action: pan-y;
}
.select-roster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 2.5vh;
}
.select-hero {
  position: relative;
  display: flex;
  text-align: left;
  align-items: center;
  gap: 9px;
  min-height: 68px;
  height: 12vh;
  max-height: 102px;
  border: 1px solid #8ba1ad55;
  border-radius: 3px;
  background: #f5f8f8;
  color: #647b8b;
  padding: 0 10px 0 0;
  overflow: hidden;
  transition: background .15s, border-color .15s;
}
.select-hero img {
  height: 100%;
  width: 34%;
  object-fit: cover;
  object-position: 50% 35%;
  background: #fff;
}
.select-hero span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.select-hero small {
  font: 10px Georgia, serif;
  letter-spacing: .1em;
}
.select-hero b {
  font: 600 clamp(12px, 2.3vh, 20px) Georgia, serif;
}
.select-hero i {
  font-style: normal;
  position: absolute;
  right: 6px;
  top: 6px;
  color: #b9985e;
  opacity: 0;
}
.select-hero.selected {
  background: #253e53;
  color: #f6f5eb;
  border-color: #b49966;
}
.select-hero.selected i {
  opacity: 1;
}
.select-hero.selected img {
  opacity: .9;
}
.select-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid #91a8b244;
  padding: 1.6vh 0;
  margin-bottom: 1.5vh;
}
.select-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid #91a8b244;
  padding-left: 14px;
}
.select-stats > div:first-child {
  padding-left: 0;
}
.select-stats > div:last-child {
  border: 0;
}
.select-stats small {
  font-size: 11px;
  color: #6e8594;
}
.select-stats b {
  font: 500 clamp(20px, 4vh, 32px) Georgia, serif;
}
.select-stats span {
  font-size: 10px;
  color: #8c9da6;
}
.select-passive {
  display: flex;
  gap: 14px;
  padding: 1vh 0 1.4vh;
  align-items: center;
}
.select-passive > img {
  width: 9vh;
  height: 9vh;
  max-width: 66px;
  max-height: 66px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(157, 181, 194, .333);
}
.select-passive small {
  font-size: 10px;
  color: #8b9ca6;
  letter-spacing: .15em;
}
.select-passive h3 {
  font-size: clamp(13px, 2.3vh, 20px);
  margin: 3px 0;
}
.select-passive p {
  margin: 0;
  font-size: clamp(10px, 1.65vh, 13px);
  line-height: 1.65;
  color: #748893;
}
.select-abilities {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(5px, 1vw, 14px);
  margin: 1vh 0;
}
.select-abilities > button {
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #7a8f9b;
}
.select-abilities img {
  width: 100%;
  max-height: 9.5vh;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 1px 5px rgba(36, 68, 94, .133);
}
.select-abilities small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
}
.select-abilities .selected {
  border-color: #b5a078;
  background: rgba(255, 255, 255, .467);
  color: #2f4e64;
}
.select-ability-detail {
  font-size: clamp(10px, 1.7vh, 13px);
  line-height: 1.75;
  color: #6f8491;
  margin: 1vh 0 12px;
  min-height: 3.5em;
}
.select-footer {
  height: 13vh;
  min-height: 52px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  padding: 8px 4vw;
  border-top: 1px solid #7897a333;
  background: #f7f9f8;
}
.select-footer > span {
  font-size: 12px;
  color: #8597a1;
}
.select-footer .primary {
  min-width: 180px;
  background: #2a4255;
}
.ui-touch-layer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}
.ui-touch {
  position: absolute;
  width: 48px;
  height: 48px;
  margin: -24px;
  border: 1px solid #c0e8f1cc;
  border-radius: 50%;
  animation: ui-touch-ring .42s ease-out forwards;
  box-shadow: 0 0 12px rgba(164, 216, 236, .333);
}
.ui-touch > b {
  position: absolute;
  top: 9px;
  right: 9px;
  bottom: 9px;
  left: 9px;
  border: 1px solid #e6ce9b;
  border-radius: 50%;
}
.ui-touch > em {
  position: absolute;
  left: 23px;
  top: 23px;
  width: 3px;
  height: 8px;
  background: #d9bb80;
  transform-origin: 1px 1px;
  transform: rotate(0deg) translateY(-21px);
}
.ui-touch > em:nth-of-type(2) {
  transform: rotate(90deg) translateY(-21px);
}
.ui-touch > em:nth-of-type(3) {
  transform: rotate(180deg) translateY(-21px);
}
.ui-touch > em:nth-of-type(4) {
  transform: rotate(270deg) translateY(-21px);
}
@keyframes ui-touch-ring {
  0% {
    opacity: 1;
    transform: scale(.3);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}
@media (max-height: 470px) {
  .select-head {
    gap: 12px;
  }
  .select-head small,
  .select-head > span {
    display: none;
  }
  .select-files {
    padding-top: 10px;
  }
  .select-roster {
    margin-bottom: 9px;
    gap: 8px;
  }
  .select-hero {
    min-height: 48px;
  }
  .select-stats {
    padding: 7px 0;
    margin-bottom: 4px;
  }
  .select-stats b {
    font-size: 20px;
  }
  .select-passive {
    padding: 5px 0;
    gap: 9px;
  }
  .select-passive p {
    line-height: 1.45;
  }
  .select-art figcaption {
    padding: 15px 4vw 10px;
  }
  .select-footer {
    gap: 15px;
  }
  .select-footer .primary {
    min-height: 38px;
    padding: 8px 20px;
  }
}

/* <stdin> */

@supports not (width:clamp(1px,2px,3px)){
/* dist/style.css */
:root {
  --paper:#f1f1f1;
  --surface:#fafaf9;
  --ink:#272b2e;
  --muted:#6a716f;
  --line:#d9dad9;
  --accent:#c54548;
  --accent-soft:#f2e7e3;
  --tech:#63b9c7;
  --head:12vh;
  --foot:14vh;
  --gutter:3.5vw;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: transparent;
  transition:
    color .16s,
    background .16s,
    transform .16s;
  touch-action: manipulation;
}
button:hover {
  color: var(--accent);
}
button:active {
  transform: translateY(1px);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:disabled {
  opacity: .4;
  cursor: default;
}
button.primary {
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  padding: 12px 20px;
  white-space: nowrap;
  font-weight: 650;
}
button.primary:hover {
  background: var(--accent);
  color: #fff;
}
button.primary > span {
  margin-left: 22px;
}
.quiet {
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
}
.hidden {
  display: none !important;
}
.screen {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
input,
select {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid #bebfbe;
  background: rgba(231, 232, 231, .314);
  color: var(--ink);
  border-radius: 3px 3px 0 0;
  padding: 9px 10px;
  line-height: 1.25;
}
input[type=number] {
  width: 100%;
  font-variant-numeric: tabular-nums;
}
input[type=checkbox] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex: none;
}
input[type=range] {
  width: 100%;
  accent-color: var(--accent);
  padding: 0;
  height: 26px;
  background: transparent;
  border: 0;
}
input[type=range]::-webkit-slider-thumb {
  cursor: ew-resize;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.tiny {
  font-size: 12px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
}
.section-title h3,
.section-title h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
}
.section-title > span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
#menu {
  isolation: isolate;
  background: #e9ebec;
}
.menu-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -3;
}
#menu-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.menu-shade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 55%,
      #f1f1f10a 63%,
      #f1f1f130);
}
.menu-fullscreen {
  position: absolute;
  right: 22px;
  top: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #646d71;
  background: rgba(239, 242, 242, .51);
  font-size: 26px;
  z-index: 3;
}
.menu-fullscreen:hover {
  color: var(--ink);
  background: #fff;
}
.menu-content {
  position: absolute;
  left: 63%;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  animation: menu-arrive .55s ease-out both;
}
.menu h1 {
  font-size: 6.5vh;
  font-weight: 750;
  letter-spacing: .01em;
  white-space: nowrap;
  line-height: 1.2;
  margin: 0 0 6vh;
  color: #252b31;
  text-shadow: 0 1px #fff8;
}
.menu-actions {
  display: flex;
  flex-direction: column;
  gap: 1.8vh;
  width: 100%;
}
.menu-actions > .vn-choice {
  position: relative;
  display: flex;
  align-items: center;
  text-align: left;
  min-height: 8vh;
  padding: 10px 18px 10px 32px;
  color: #5a6469;
  font-size: 3.8vh;
  font-weight: 450;
  background: transparent;
  border-radius: 0 4px 4px 0;
}
.vn-choice:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform .18s;
}
.vn-choice .choice-sigil {
  position: absolute;
  left: 9px;
  top: 50%;
  font-style: normal;
  font-size: 19px;
  transform: translateY(-50%);
  opacity: 0;
  color: #f7a6a2;
  transition: opacity .18s;
}
.menu-actions > .vn-choice:hover {
  background: rgba(255, 255, 255, .27);
  color: #323b40;
}
.menu-actions > .vn-choice.selected {
  background: #2e3437;
  color: #fff;
  box-shadow: 8px 8px 0 rgba(120, 131, 138, .063);
}
.vn-choice.selected:before {
  transform: scaleY(1);
}
.vn-choice.selected .choice-sigil {
  opacity: 1;
}
.vn-choice.selected:hover {
  background: #262d30;
  color: #fff;
}
#menu-sparks {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}
.tap-spark {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid #be3f4a;
  transform: translate(-50%, -50%) rotate(45deg);
  animation: tap-bloom .65s ease-out forwards;
}
.tap-spark:before,
.tap-spark:after {
  content: "";
  position: absolute;
  top: -6px;
  right: -6px;
  bottom: -6px;
  left: -6px;
  border: 1px solid #55a2ae70;
}
.tap-spark:after {
  top: -12px;
  right: -12px;
  bottom: -12px;
  left: -12px;
  border-color: rgba(255, 255, 255, .627);
}
#setup {
  isolation: isolate;
  background: var(--paper);
}
#setup:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
  background:
    linear-gradient(
      120deg,
      #f7f8f6 15%,
      #e9eae9 52%,
      #f4f5f3 52.1%,
      #f4f5f3 100%);
}
.page-head {
  height: var(--head);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px var(--gutter);
}
.page-head h2 {
  font-size: 4.2vh;
  font-weight: 650;
  margin: 0;
  letter-spacing: .03em;
}
.page-head .back {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 23px;
  color: #5c5f5d;
  background: rgba(255, 255, 255, .533);
}
.page-head .back:hover {
  background: var(--ink);
  color: #fff;
}
.page-head .quiet {
  margin-left: auto;
  font-size: 14px;
  color: var(--ink);
}
.ready-room {
  height: calc(100% - var(--head) - var(--foot));
  display: grid;
  grid-template-columns: 23% 33% 44%;
  grid-template-rows: minmax(0, 1fr);
  padding: 6px var(--gutter) 0;
  align-items: stretch;
}
.roster-panel {
  min-width: 0;
  padding: 2vh 18px 6px 0;
  overflow: auto;
  scrollbar-width: thin;
}
.roster-panel h3,
.ready-loadout h3 {
  font-size: 2.7vh;
  font-weight: 650;
  margin: 0 0 12px;
}
.roster-choice {
  display: flex;
  position: relative;
  align-items: center;
  text-align: left;
  gap: 10px;
  width: 100%;
  min-height: 12vh;
  padding: 7px 10px 7px 0;
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 255, 255, .44);
  border-radius: 0;
}
.roster-choice img {
  width: 8.5vh;
  height: 9vh;
  object-fit: cover;
  object-position: 27% center;
  border-radius: 2px;
}
.roster-choice span {
  min-width: 0;
  font-size: 2.5vh;
  font-weight: 650;
  line-height: 1.3;
}
.roster-choice b {
  font-size: 15px;
  color: var(--accent);
  margin-left: auto;
}
.ready-stats {
  padding: 2vh 0;
  display: flex;
  flex-direction: column;
}
.ready-stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-height: 7vh;
  padding: 7px 4px;
  border-bottom: 1px solid #ced0ce90;
}
.ready-stats span {
  font-size: 2.3vh;
  color: var(--muted);
}
.ready-stats strong {
  font-size: 3.8vh;
  line-height: 1;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  color: #373a39;
}
.passive-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 8px 0;
  font-size: 2.3vh;
  text-align: left;
  color: #5f6461;
  border-top: 1px solid #c1c4c2;
}
.passive-button b {
  font-size: 17px;
  font-weight: 400;
  color: var(--accent);
}
.ready-stage {
  position: relative;
  margin: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
  pointer-events: none;
}
.ready-stage > img {
  position: relative;
  width: 120%;
  height: 104%;
  object-fit: contain;
  object-position: center bottom;
  z-index: 2;
  filter: drop-shadow(0 12px 10px #2a302d22);
}
.stage-plane {
  position: absolute;
  top: 10%;
  right: 12%;
  bottom: 6%;
  left: 12%;
  border-right: 1px solid #7cafb82b;
  background: rgba(251, 252, 250, .23);
  transform: skew(-12deg);
  z-index: 0;
}
.stage-floor {
  position: absolute;
  bottom: 3%;
  left: 12%;
  right: 12%;
  height: 5%;
  border-radius: 50%;
  background: rgba(125, 133, 129, .15);
  filter: blur(7px);
  z-index: 1;
}
.ready-loadout {
  min-width: 0;
  padding: 2vh 0 0 2vw;
  display: flex;
  flex-direction: column;
  overflow: auto;
  scrollbar-width: thin;
}
.ready-loadout .section-title {
  margin-bottom: 12px;
}
.ready-loadout h3 {
  margin: 0;
}
.ready-loadout #aux-count {
  color: var(--accent);
  font-size: 14px;
}
.aux-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
  flex: none;
}
.aux-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  min-width: 0;
  min-height: 10vh;
  padding: 6px 8px 6px 6px;
  border-bottom: 1px solid #dadcda;
  background: rgba(255, 255, 255, .5);
  border-radius: 3px;
}
.aux-card img {
  width: 7.3vh;
  height: 7.3vh;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  filter: saturate(.75);
}
.aux-card b {
  min-width: 0;
  font-size: 2.5vh;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.aux-order {
  margin-left: auto;
  color: #707270;
  font-size: 12px;
  width: 17px;
  flex: none;
  text-align: center;
}
.aux-card:hover {
  background: #fff;
  color: var(--ink);
}
.aux-card.selected {
  background: #343c3f;
  border-color: #343c3f;
  color: #fff;
  box-shadow: inset 2px 0 var(--accent);
}
.aux-card.selected img {
  filter: none;
}
.aux-card.selected .aux-order {
  background: #f6c3bc;
  color: #7a3435;
  width: 17px;
  height: 17px;
  line-height: 17px;
  border-radius: 50%;
  font-weight: 600;
}
.aux-inspector {
  border-top: 1px solid #cccecc;
  margin-top: 2vh;
  padding: 9px 0 6px;
  min-height: 64px;
  flex: none;
}
.aux-inspector > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.aux-inspector h4 {
  margin: 0;
  font-size: 2.5vh;
  font-weight: 550;
}
#aux-preview-cd {
  font-size: 12px;
  color: #6d746f;
  font-variant-numeric: tabular-nums;
}
#aux-details {
  margin-left: auto;
  width: 29px;
  height: 28px;
  border-radius: 50%;
  font-size: 19px;
  padding: 0;
  background: rgba(255, 255, 255, .65);
  color: #4f5551;
}
.aux-inspector p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 2.4vh;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ready-footer {
  height: var(--foot);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 3vw;
  padding: 8px var(--gutter);
  background: rgba(248, 249, 247, .85);
  border-top: 1px solid #dddfdd;
  backdrop-filter: blur(10px);
}
.growth-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.growth-control > label {
  font-size: 2.7vh;
  color: #666967;
  white-space: nowrap;
}
.stepper {
  display: flex;
  height: 36px;
  align-items: center;
  border-bottom: 1px solid #b2b5b2;
}
.stepper button {
  font-size: 19px;
  width: 32px;
  height: 34px;
  padding: 0;
  color: #6c716d;
}
.stepper input {
  width: 42px !important;
  padding: 6px 0;
  text-align: center;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: 16px;
  -webkit-appearance: textfield;
  appearance: textfield;
  -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.card-config {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 2.7vh;
  white-space: nowrap;
  padding: 8px 0;
  color: var(--muted);
}
.card-config span {
  font-size: 19px;
}
.ready-footer > .primary {
  margin-left: auto;
  min-width: 22vw;
  min-height: 40px;
  font-size: 3vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 40, 43, .38);
  backdrop-filter: blur(12px);
  padding: 4vh 4vw;
}
.dialog-shell {
  width: 800px;
  max-height: 92vh;
  background: #f7f7f6;
  border: 1px solid #fff9;
  border-radius: 10px;
  box-shadow: 0 25px 70px rgba(17, 29, 36, .17);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: sheet-arrive .18s ease-out;
}
.dialog-shell > header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.7vh 26px;
  border-bottom: 1px solid #dcdddb;
}
.dialog-shell h2 {
  font-size: 3.8vh;
  font-weight: 600;
  margin: 0;
}
#dialog-close {
  width: 33px;
  height: 33px;
  font-size: 18px;
  padding: 0;
  border-radius: 50%;
  background: #e7e8e7;
  color: #6a6d6a;
}
#dialog-close:hover {
  color: #fff;
  background: #4f5351;
}
#dialog-body {
  padding: 20px 26px;
  font-size: 14px;
  line-height: 1.8;
  overflow: auto;
  overscroll-behavior: contain;
}
#dialog-body p {
  margin: 0 0 15px;
}
#dialog-body p:last-child {
  margin-bottom: 0;
}
[data-kind=settings] .dialog-shell,
[data-kind=manual] .dialog-shell {
  height: 600px;
}
[data-kind=settings] #dialog-body,
[data-kind=manual] #dialog-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.preferences {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.sheet-nav {
  display: flex;
  flex-direction: column;
  padding: 18px 0 18px 14px;
  border-right: 1px solid #dadcd9;
  background: #eaebea;
  gap: 5px;
  overflow: auto;
  scrollbar-width: thin;
}
.sheet-nav > button {
  position: relative;
  flex: none;
  text-align: left;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 4px 0 0 4px;
  color: #6e716d;
  line-height: 1.4;
}
.sheet-nav > button.selected {
  background: #f7f7f6;
  color: #292d2b;
  font-weight: 600;
}
.sheet-nav > button.selected:before {
  content: "";
  position: absolute;
  left: 0;
  top: 26%;
  bottom: 26%;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.sheet-content {
  min-width: 0;
  overflow: auto;
  padding: 22px 30px;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.sheet-content h3 {
  font-size: 19px;
  margin: 0 0 18px;
  font-weight: 600;
  color: #494d4a;
}
.sheet-content p {
  color: #717371;
  font-size: 14px;
  line-height: 1.9;
}
.setting-row {
  margin: 0;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 67px;
  border-bottom: 1px solid #dddfdc;
}
.setting-row label {
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  color: #4b4f4b;
}
.setting-row label > span {
  color: #6f7370;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.check-label {
  display: flex !important;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
  color: #5b5f59;
  font-size: 13px;
  line-height: 1.5;
}
.check-label input {
  margin: 0;
}
.switch-row {
  min-height: 54px;
  border-bottom: 1px solid #dddfdc;
  margin: 0;
  font-size: 15px;
  justify-content: space-between;
}
.switch-row input {
  appearance: none;
  -webkit-appearance: none;
  width: 36px;
  height: 22px;
  background: #cbcdca;
  border: 0;
  border-radius: 11px;
  position: relative;
  padding: 0;
  transition: background .15s;
}
.switch-row input:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fafaf9;
  border-radius: 50%;
  transition: transform .15s;
}
.switch-row input:checked {
  background: #656d67;
}
.switch-row input:checked:before {
  transform: translateX(14px);
}
.key-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px 18px;
  margin-bottom: 13px;
}
.key-table label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dedfdd;
  gap: 6px;
  font-size: 12px;
  min-height: 39px;
  color: #6f726e;
}
.key-table button {
  font-size: 13px;
  white-space: nowrap;
  background: #e4e6e2;
  padding: 5px 8px;
  border-radius: 3px;
  min-width: 33px;
  color: #404540;
}
.key-table button:hover {
  background: #d1d5cf;
}
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
}
.dialog-actions button {
  font-size: 14px;
  padding: 10px 15px;
}
[data-kind=settings] .dialog-actions {
  margin: 0;
  padding: 12px 24px;
  border-top: 1px solid #dddfdc;
  flex: none;
  background: #fafaf9;
}
#default-settings {
  margin-right: auto;
  color: #6e706c;
}
#settings-done {
  min-width: 115px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.layout-mini {
  height: 22vh;
  position: relative;
  border-radius: 6px;
  margin-bottom: 12px;
  background: #e7e9e7;
  overflow: hidden;
}
.layout-mini:before {
  content: "";
  position: absolute;
  top: 20%;
  right: 27%;
  bottom: 20%;
  left: 27%;
  transform: skew(-12deg);
  background: #f3f4f1;
}
.layout-mini i {
  position: absolute;
  left: 9%;
  bottom: 18%;
  width: 60px;
  height: 60px;
  border: 1px solid #a4a9a3;
  border-radius: 50%;
  background: rgba(188, 192, 185, .314);
}
.layout-mini i:after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  left: 18px;
  border-radius: 50%;
  background: #8c9288;
}
.layout-mini img {
  position: absolute;
  width: 56px;
  height: 56px;
  object-fit: cover;
  right: 9%;
  bottom: 18%;
  border-radius: 50%;
  opacity: .8;
}
.layout-mini img:last-child {
  width: 35px;
  height: 35px;
  right: 22%;
  bottom: 53%;
  opacity: .5;
}
#edit-settings-layout {
  font-size: 14px;
  margin-top: 5px;
}
.skill-dialog {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.skill-dialog > img {
  width: 14vw;
  height: 14vw;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.skill-cost {
  color: #6c726a;
  font-size: 13px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #d5d8d4;
}
#training-panel {
  position: absolute;
  right: 14px;
  top: 68px;
  bottom: 14px;
  width: 38vw;
  max-width: 48vw;
  background: rgba(246, 247, 245, .96);
  color: var(--ink);
  border: 1px solid #ffffffe0;
  border-radius: 12px;
  z-index: 20;
  box-shadow: 0 15px 40px rgba(8, 16, 24, .17);
  display: flex;
  flex-direction: column;
  touch-action: auto;
  backdrop-filter: blur(15px);
  overflow: hidden;
  animation: drawer-arrive .18s ease-out;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px;
}
.panel-head h3 {
  font-size: 21px;
  margin: 0;
  font-weight: 600;
}
.panel-head .quiet {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  background: #e5e7e4;
  color: #6d726b;
}
.tool-tabs {
  display: flex;
  padding: 0 20px;
  border-bottom: 1px solid #dcdeda;
  gap: 16px;
  flex: none;
}
.tool-tabs > button {
  padding: 10px 0;
  flex: 1;
  font-size: 14px;
  color: #6f726d;
  border-bottom: 2px solid transparent;
}
.tool-tabs > button.selected {
  color: #3d443e;
  border-color: var(--accent);
  font-weight: 600;
}
.panel-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 20px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #a5a9a2 transparent;
  touch-action: pan-y;
}
.panel-scroll .section-title {
  margin-bottom: 12px;
}
.panel-scroll h4 {
  font-size: 14px;
  color: #575d55;
}
.panel-scroll .section-title > span {
  font-size: 12px;
  color: #6f736e;
}
.panel-scroll label {
  display: block;
  font-size: 12px;
  color: #6f716c;
}
.panel-scroll input,
.panel-scroll select {
  width: 100%;
  margin: 5px 0 12px;
  font-size: 14px;
  padding: 8px 9px;
}
.panel-scroll .check-label {
  font-size: 12px;
  margin: 10px 0;
}
.panel-scroll .check-label input {
  width: 16px;
  height: 16px;
  flex: none;
  padding: 0;
  margin: 0 2px 0 0;
}
.input-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tool-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 12px 0;
}
.tool-buttons button {
  font-size: 12px;
  line-height: 1.4;
  padding: 11px 7px;
  border-radius: 4px;
  background: #e4e6e2;
  color: #4c5348;
}
.tool-buttons button:hover {
  background: #d4d8d1;
}
.tool-buttons button.danger {
  color: #aa5b50;
  background: #f0e4da;
}
.danger {
  color: #a35d50;
}
.wide {
  width: 100%;
  padding: 11px 12px;
  margin-top: 12px;
  font-size: 13px;
  background: #e2e5e0;
  border-radius: 4px;
  color: #4d5449;
}
.live-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  margin: 3px 0 15px;
}
.live-stats > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid #dcdfda;
  gap: 7px;
  font-size: 12px;
  color: #6d716b;
}
.live-stats b {
  font-size: 13px;
  font-weight: 550;
  color: #565e52;
  font-variant-numeric: tabular-nums;
}
.live-stats > div:last-child {
  grid-column: 1/-1;
}
.advanced {
  margin-top: 15px;
  border-top: 1px solid #cfd3cd;
}
.advanced summary {
  padding: 13px 0;
  cursor: pointer;
  font-size: 13px;
  color: #6d7267;
}
.advanced .wide {
  margin-top: 0;
}
.record-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  padding: 16px 0 20px;
  border-bottom: 1px solid #d0d3cd;
}
.record-hero > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.record-hero span {
  font-size: 12px;
  color: #6e736b;
}
.record-hero strong {
  font-size: 6vh;
  font-weight: 450;
  line-height: 1;
  color: #4b5348;
  font-variant-numeric: tabular-nums;
}
.record-hero > div:last-child strong {
  color: #9c634f;
}
.damage-record dl {
  margin: 15px 0;
}
.damage-record dl > div {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #dcdfda;
  font-size: 12px;
}
.damage-record dt {
  color: #6e726a;
}
.damage-record dd {
  margin: 0;
  color: #565e52;
  font-variant-numeric: tabular-nums;
}
.tool-footer {
  border-top: 1px solid #dcdeda;
  padding: 9px 20px;
  text-align: right;
  background: #f9f9f7;
  flex: none;
}
.tool-footer button {
  font-size: 12px;
  padding: 7px 0;
  color: #9a644d;
}
.empty-pool {
  text-align: center;
  padding: 8px 0 12px;
}
.empty-pool > b {
  display: block;
  color: #6e726b;
  font-size: 16px;
  font-weight: 550;
}
.empty-pool p {
  color: #70746b;
  font-size: 13px;
}
.empty-pool button {
  font-size: 13px;
  color: #6e7468;
  padding: 10px 0;
  border-bottom: 1px solid #cdd2c9;
}
.empty-pool button span {
  margin-left: 15px;
}
.card-stack {
  height: 100px;
  width: 110px;
  position: relative;
  margin: 5px auto 20px;
}
.card-stack i {
  position: absolute;
  left: 20px;
  top: 8px;
  width: 70px;
  height: 88px;
  border: 1px solid #b7bcb3;
  border-radius: 6px;
  background: #e9ebe6;
  transform: rotate(-13deg);
}
.card-stack i:nth-child(2) {
  transform: rotate(13deg);
  background: #f2f3f0;
}
.card-stack i:last-child {
  transform: rotate(0);
  background: #f9f9f7;
  box-shadow: 0 3px 8px rgba(98, 104, 91, .063);
}
.card-stack i:last-child:after {
  content: "\2727";
  position: absolute;
  top: 15px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  color: #6d7565;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 30px;
}
#layout-editor {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  max-width: 44vw;
  max-height: calc(100% - 88px);
  overflow: auto;
  z-index: 30;
  padding: 15px 18px;
  border-radius: 10px;
  color: #686c65;
  background: rgba(243, 244, 242, .93);
  border: 1px solid #ffffffc0;
  backdrop-filter: blur(12px);
  touch-action: pan-y;
  scrollbar-width: thin;
}
#layout-editor > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d4d8d1;
}
#layout-editor b {
  font-size: 16px;
  font-weight: 600;
}
#edit-done {
  margin-left: auto;
  background: #535a4f;
  color: #fff;
  padding: 7px 13px;
  border-radius: 4px;
  font-size: 12px;
}
#layout-editor label {
  display: block;
  font-size: 12px;
  color: #6e726b;
  margin-top: 12px;
}
#layout-editor select {
  width: 100%;
  margin-top: 7px;
  font-size: 14px;
}
#layout-editor strong {
  float: right;
  color: #595f54;
  font-weight: 550;
}
#layout-editor input {
  display: block;
  margin-top: 5px;
  accent-color: #666e5f;
}
#layout-reset {
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  border-top: 1px solid #d1d5ce;
  color: #6e736a;
  font-size: 12px;
}
#game {
  background: #03080d;
  touch-action: auto;
  color: #eff3ef;
}
#arena {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.game-vignette {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  box-shadow: inset 0 0 70px rgba(1, 5, 10, .333);
}
#hud {
  position: absolute;
  top: 14px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.health-box {
  width: 29%;
  max-width: 420px;
  --vital:#7ee2d7;
  --vital-deep:#358fa2;
  --core:#8fc8f4;
  --core-deep:#4e81be;
}
.vital-frame {
  position: relative;
  padding: 8px 10px 9px;
  background:
    linear-gradient(
      110deg,
      rgba(10, 27, 41, .95),
      rgba(16, 29, 43, .863));
  border: 1px solid #8cafba54;
  border-radius: 4px 11px 4px 4px;
  box-shadow: 0 3px 12px rgba(1, 10, 18, .2), inset 0 1px rgba(192, 229, 237, .086);
}
.vital-frame:before {
  content: "";
  position: absolute;
  left: -1px;
  top: 11px;
  width: 2px;
  height: 20px;
  background: var(--vital);
  box-shadow: 0 0 7px rgba(128, 225, 210, .286);
}
.vital-frame:after {
  content: "";
  position: absolute;
  right: 8px;
  top: 3px;
  width: 19px;
  height: 2px;
  background: var(--vital);
  opacity: .65;
}
.health-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
  font-size: 1.6vh;
  letter-spacing: .45px;
  color: #f1f5ef;
  line-height: 1.2;
}
.health-name b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}
.health-name span {
  flex: none;
  font-size: 1.55vh;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: #d2e4e9;
  font-weight: 550;
}
.health-track {
  height: 16px;
  margin-top: 7px;
  position: relative;
  border: 1px solid #9fcbcf52;
  background: #030d15;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6);
  border-radius: 2px 5px 2px 2px;
  overflow: hidden;
}
.health-track i {
  display: block;
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 1px;
  max-width: calc(100% - 2px);
  width: 0;
  pointer-events: none;
}
.health-lag {
  background: #e9bc8a;
  opacity: .85;
}
.health-fill {
  background:
    linear-gradient(
      0deg,
      var(--vital-deep),
      var(--vital) 68%,
      #d6fff1);
  transition: width .09s linear;
  box-shadow: 0 0 8px rgba(114, 232, 209, .216);
}
.health-fill:after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e8fff0;
  box-shadow: 0 0 5px rgba(255, 255, 255, .6);
}
.health-track:after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  left: 1px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(10% - 1px),
      #08233266 calc(10% - 1px),
      #08233266 10%);
  pointer-events: none;
}
.core-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}
.core-track {
  height: 7px;
  position: relative;
  flex: 1;
  min-width: 0;
  background: #030d16;
  border: 1px solid #6d9abd5c;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .533);
}
.core-fill {
  display: block;
  position: absolute;
  inset: 1px auto 1px 1px;
  max-width: calc(100% - 2px);
  width: 0;
  background:
    linear-gradient(
      90deg,
      var(--core-deep),
      var(--core));
  transition: width .16s ease-out;
  box-shadow: 0 0 5px rgba(143, 200, 244, .12);
}
.core-mark {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: #182d3c;
  border: 1px solid #b2cbd97a;
  z-index: 1;
}
.skill-mark {
  left: 30%;
}
.ultimate-mark {
  right: -1px;
}
.core-line span {
  flex: none;
  min-width: 64px;
  font-size: 1.5vh;
  line-height: 1;
  font-weight: 650;
  letter-spacing: .4px;
  color: #bbd5ef;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.skill-ready .skill-mark {
  background: #b8f2d9;
  border-color: #e5ffeb;
}
.ultimate-ready {
  --core:#ffe7b0;
  --core-deep:#c29960;
}
.ultimate-ready .core-track {
  border-color: rgba(211, 182, 126, .61);
  box-shadow: 0 0 8px rgba(236, 201, 121, .125);
}
.ultimate-ready .core-line span {
  color: #ffe4a6;
}
.ultimate-ready .ultimate-mark {
  background: #ffda8d;
  border-color: #fff0cb;
}
.low-health {
  --vital:#f29e83;
  --vital-deep:#a74856;
}
.low-health .health-name span {
  color: #ffd0c3;
}
.target-health {
  --vital:#f0bd8d;
  --vital-deep:#ae6b61;
  text-align: right;
}
.target-health.low-health {
  --vital:#f29e83;
  --vital-deep:#a74856;
}
.target-health .vital-frame {
  border-radius: 11px 4px 4px 4px;
  background:
    linear-gradient(
      250deg,
      rgba(10, 27, 41, .95),
      rgba(16, 29, 43, .863));
}
.target-health .vital-frame:before {
  left: auto;
  right: -1px;
}
.target-health .vital-frame:after {
  right: auto;
  left: 8px;
}
.target-health .health-name {
  flex-direction: row-reverse;
}
.target-health .health-track {
  border-radius: 5px 2px 2px 2px;
}
.target-health .health-track i {
  left: auto;
  right: 1px;
}
.target-health .health-fill:after {
  left: 0;
  right: auto;
}
.target-health .core-line {
  flex-direction: row-reverse;
}
.target-health .core-line span {
  text-align: left;
}
.target-health .core-fill {
  left: auto;
  right: 1px;
  background:
    linear-gradient(
      270deg,
      var(--core-deep),
      var(--core));
}
.target-health .skill-mark {
  left: auto;
  right: 30%;
}
.target-health .ultimate-mark {
  right: auto;
  left: -1px;
}
.health-box.empty .vital-frame {
  opacity: .5;
}
.status-list {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-content: flex-start;
  margin-top: 6px;
  max-height: 66px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  pointer-events: auto;
}
.status-list:empty {
  display: none;
}
.status-list::-webkit-scrollbar {
  display: none;
}
.target-health .status-list {
  justify-content: flex-end;
}
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  background: rgba(13, 36, 48, .93);
  border: 1px solid #6ba9ad60;
  border-radius: 3px;
  color: #d0eee4;
  font-size: 1.45vh;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.status-tag:before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #96d7c4;
  flex: none;
}
.status-tag.bad {
  background: rgba(50, 35, 43, .92);
  border-color: rgba(184, 120, 118, .43);
  color: #ffd4c8;
}
.status-tag.bad:before {
  background: #efa399;
}
.game-nav {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(23, 30, 27, .863);
  border: 1px solid #bac9bb2c;
  border-radius: 20px;
}
.game-nav button {
  padding: 6px 9px;
  font-size: 10px;
  color: #c3cdbf;
  border-radius: 16px;
  background: transparent;
  white-space: nowrap;
}
.game-nav button:hover,
.game-nav button.selected {
  background: rgba(106, 128, 113, .25);
  color: #fff;
}
#controls {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}
.control {
  position: absolute;
  pointer-events: auto;
  user-select: none;
  touch-action: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.action {
  border-radius: 50%;
  border: 1px solid #bfd0c18a;
  background: rgba(36, 50, 43, .133);
  padding: 0;
  overflow: visible;
  color: #f5f6ee;
}
.action:hover,
.action:active,
.action:focus-visible {
  color: #f5f6ee;
}
.action > span {
  color: #f5f6ee;
}
.action img {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 50%;
  object-fit: cover;
  opacity: var(--control-art-opacity,.42);
  transition: opacity .15s;
  pointer-events: none;
}
.action span {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 12%;
  font-size: 1.35vh;
  font-weight: 500;
  line-height: 1.1;
  text-shadow: 0 1px 3px #000, 0 0 4px #000;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 0 2px;
  z-index: 3;
  pointer-events: none;
}
.action .cooldown {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  left: 4px;
  pointer-events: none;
  z-index: 2;
  display: none;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  transform: none;
}
.action .cd-label {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  font-size: 3.5vh;
  font-weight: 650;
  z-index: 4;
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
}
.action.active {
  border-color: #e4ffff;
  box-shadow: 0 0 10px rgba(192, 222, 218, .29);
}
.action.unavailable img {
  filter: saturate(.2);
  opacity: calc(var(--control-art-opacity,.42)*.55);
}
#ctrl-attack {
  background: rgba(32, 43, 40, .91);
  border-color: #c4d8cf;
}
#ctrl-attack img,
#ctrl-attack.unavailable img {
  opacity: 1;
  filter: none;
}
#ctrl-attack.cooling img {
  filter: brightness(.6) saturate(.75);
}
.ultimate {
  border-color: #c4b6ee;
}
.auxiliary {
  border-color: #aab9a2;
}
.move-pad {
  border-radius: 50%;
  background: rgba(37, 52, 43, .27);
  border: 1px solid #9aae9c99;
  box-shadow: inset 0 0 0 12px rgba(97, 121, 132, .075);
}
.move-ring {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  left: 18px;
  border: 1px solid #c3d2bb40;
  border-radius: 50%;
}
.dir {
  position: absolute;
  font-size: 10px;
  color: #bdcdb5;
  pointer-events: none;
}
.dir.up {
  top: 8px;
  left: calc(50% - 5px);
}
.dir.down {
  bottom: 8px;
  left: calc(50% - 5px);
}
.dir.left {
  left: 8px;
  top: calc(50% - 5px);
}
.dir.right {
  right: 8px;
  top: calc(50% - 5px);
}
#move-stick {
  position: absolute;
  border-radius: 50%;
  background: rgba(120, 139, 114, .65);
  border: 1px solid #d0ddc7aa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .333);
  pointer-events: none;
}
.weapon-switch {
  position: absolute;
  border-radius: 50%;
  padding: 2px;
  border: 1px solid #b3c7b9;
  background: rgba(32, 43, 40, .93);
  pointer-events: auto;
  touch-action: none;
  z-index: 6;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color .12s;
}
.weapon-switch img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  opacity: 1;
  pointer-events: none;
}
.weapon-switch small {
  position: absolute;
  bottom: -3px;
  right: -1px;
  background: #23352c;
  color: #edf4e7;
  padding: 1px 3px;
  border-radius: 4px;
  font-size: 8px;
  pointer-events: none;
  white-space: nowrap;
}
.weapon-switch.locked {
  opacity: 1;
  border-color: #71858d;
}
.weapon-switch.queued {
  border-color: #ffdb93;
  box-shadow: 0 0 8px rgba(255, 189, 101, .4);
}
.weapon-switch:active {
  border-color: #f4ebce;
}
#aim-hint {
  display: none !important;
}
#pause-cover {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(20, 33, 27, .467);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 8;
  color: #eff6e9;
}
#pause-cover b {
  font-size: 4vh;
  font-weight: 550;
  letter-spacing: 3px;
}
#placement-banner {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 14px;
  border: 1px solid #fff9;
  background: rgba(243, 248, 238, .925);
  color: #67835b;
  font-size: 12px;
  z-index: 25;
  white-space: nowrap;
  border-radius: 6px;
}
#placement-banner button {
  font-size: 12px;
  padding: 6px 11px;
  margin-left: 12px;
  background: #526d40;
  color: #fff;
  border-radius: 4px;
}
body.editing .control {
  outline: 1px dashed #cfded588;
  outline-offset: 4px;
  cursor: move;
}
body.editing .control.edit-selected {
  outline: 2px solid #ffe0a6;
  outline-offset: 5px;
}
#cancel-cast {
  position: absolute;
  right: 22px;
  top: 95px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  z-index: 15;
  background: rgba(37, 19, 26, .61);
  border: 1px solid #ed899799;
  color: #ffe3de;
  touch-action: none;
  user-select: none;
  padding: 0;
}
#cancel-cast b {
  display: block;
  font: 38px/46px system-ui;
  pointer-events: none;
}
#cancel-cast.armed {
  background: rgba(175, 53, 73, .78);
  border: 2px solid #ffe9d8;
  box-shadow: 0 0 22px rgba(255, 101, 117, .5);
  color: #fff9ed;
}
body.ultimate-active #hud,
body.ultimate-active .game-nav {
  opacity: .55;
  transition: opacity .4s;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 15px);
  background: rgba(245, 248, 240, .96);
  border: 1px solid #fff9;
  color: #576e46;
  padding: 10px 20px;
  font-size: 13px;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  max-width: 80vw;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(27, 49, 32, .137);
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#orientation-hint {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  background: #eff4e9;
  color: #526442;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 30px;
}
#orientation-hint > div {
  font-size: 60px;
  color: #859c6c;
  margin-bottom: 20px;
}
#orientation-hint b {
  font-size: 20px;
  font-weight: 600;
}
#orientation-hint p {
  font-size: 13px;
  color: #8a9c75;
  line-height: 1.8;
}
#orientation-hint button {
  padding: 12px 20px;
  margin-top: 15px;
  background: #526c3c;
  color: #fff;
  border-radius: 4px;
}
@keyframes menu-arrive {
  from {
    opacity: 0;
    margin-top: 8px;
  }
  to {
    opacity: 1;
    margin-top: 0;
  }
}
@keyframes sheet-arrive {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes drawer-arrive {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes tap-bloom {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(135deg) scale(6);
  }
}
@media (orientation: portrait) and (max-width: 850px) {
  #orientation-hint {
    display: none !important;
  }
}
@media (max-height: 500px) {
  :root {
    --gutter:3vw;
  }
  .menu-content {
    left: 62%;
    right: 4%;
  }
  .menu h1 {
    font-size: 7.8vh;
    margin-bottom: 22px;
  }
  .menu-actions {
    gap: 6px;
  }
  .menu-actions > .vn-choice {
    font-size: 5vh;
    min-height: 39px;
    padding: 7px 14px 7px 28px;
  }
  .menu-fullscreen {
    top: 10px;
    right: 15px;
    width: 34px;
    height: 34px;
    font-size: 23px;
  }
  .page-head {
    gap: 12px;
  }
  .page-head h2 {
    font-size: 20px;
  }
  .page-head .quiet {
    font-size: 13px;
  }
  .roster-panel {
    padding-right: 11px;
  }
  .roster-panel h3 {
    margin-bottom: 7px;
  }
  .roster-choice {
    gap: 7px;
    padding: 5px 7px 5px 0;
  }
  .ready-stats {
    padding: 9px 0;
  }
  .ready-stats > div {
    min-height: 30px;
    padding: 7px 3px;
  }
  .ready-stats strong {
    font-size: 20px;
  }
  .passive-button {
    padding: 7px 0;
  }
  .ready-loadout {
    padding-left: 12px;
  }
  .ready-loadout .section-title {
    margin-bottom: 8px;
  }
  .aux-grid {
    gap: 4px 7px;
  }
  .aux-card {
    gap: 6px;
    padding: 5px 6px;
    min-height: 40px;
  }
  .aux-card img {
    width: 30px;
    height: 30px;
  }
  .aux-card b {
    font-size: 12px;
  }
  .aux-order {
    width: 15px;
    font-size: 11px;
  }
  .aux-card.selected .aux-order {
    width: 15px;
    height: 15px;
    line-height: 15px;
  }
  .aux-inspector {
    margin-top: 8px;
    padding-top: 6px;
    min-height: 60px;
  }
  .aux-inspector p {
    font-size: 11px;
    margin-top: 2px;
  }
  .aux-inspector h4 {
    font-size: 12px;
  }
  .growth-control {
    gap: 8px;
  }
  .stepper {
    height: 32px;
  }
  .stepper input {
    font-size: 14px;
  }
  .stepper button {
    width: 26px;
    font-size: 17px;
  }
  .ready-footer {
    gap: 20px;
  }
  .ready-footer > .primary {
    padding: 10px 17px;
    font-size: 15px;
    min-width: 175px;
  }
  .ready-footer .card-config {
    font-size: 13px;
  }
  .dialog-shell > header {
    padding: 11px 20px;
  }
  .dialog-shell h2 {
    font-size: 20px;
  }
  #dialog-body {
    padding: 16px 20px;
    font-size: 13px;
  }
  .preferences {
    grid-template-columns: 135px minmax(0, 1fr);
  }
  .sheet-nav {
    padding: 10px 0 10px 10px;
    gap: 3px;
  }
  .sheet-nav > button {
    padding: 9px 12px;
    font-size: 13px;
  }
  .sheet-content {
    padding: 15px 23px;
  }
  .sheet-content h3 {
    font-size: 17px;
    margin-bottom: 9px;
  }
  .sheet-content p {
    font-size: 13px;
    line-height: 1.75;
  }
  .setting-row {
    min-height: 52px;
    gap: 15px;
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .setting-row label,
  .switch-row {
    font-size: 13px;
  }
  .switch-row {
    min-height: 43px;
  }
  .key-table {
    gap: 3px 12px;
  }
  .key-table label {
    min-height: 33px;
    font-size: 11px;
  }
  .key-table button {
    padding: 4px 7px;
    font-size: 12px;
  }
  .sheet-content .muted {
    font-size: 11px;
    margin-bottom: 0;
  }
  [data-kind=settings] .dialog-actions {
    padding: 9px 20px;
  }
  .dialog-actions button {
    font-size: 13px;
    padding: 8px 14px;
  }
  #training-panel {
    top: 62px;
    bottom: 10px;
  }
  .panel-head {
    padding: 10px 17px 7px;
  }
  .panel-head h3 {
    font-size: 18px;
  }
  .tool-tabs {
    padding: 0 17px;
    gap: 13px;
  }
  .tool-tabs > button {
    font-size: 12px;
    padding: 8px 0;
  }
  .panel-scroll {
    padding: 13px 17px;
  }
  .tool-footer {
    padding: 6px 17px;
  }
  .tool-buttons button {
    font-size: 11px;
    padding: 9px 5px;
  }
  #hud {
    top: 10px;
    left: 14px;
    right: 14px;
  }
  .health-box {
    width: 28%;
  }
  .health-name {
    font-size: 9px;
  }
  .health-name span {
    font-size: 8px;
  }
  .health-track {
    height: 14px;
  }
  .vital-frame {
    padding: 7px 8px;
  }
  .core-line {
    margin-top: 6px;
  }
  .game-nav button {
    padding: 5px 7px;
    font-size: 9px;
  }
  .game-nav {
    top: 9px;
  }
  .status-tag {
    font-size: 8px;
  }
  .action span {
    font-size: 8px;
  }
  #layout-editor {
    top: 62px;
    max-height: calc(100% - 73px);
    padding: 10px 14px;
    width: 280px;
  }
  #layout-editor > div {
    padding-bottom: 8px;
  }
  #layout-editor label {
    margin-top: 8px;
  }
  #layout-editor b {
    font-size: 14px;
  }
  #layout-reset {
    margin-top: 5px;
    padding: 7px;
  }
  #placement-banner {
    top: 61px;
  }
  #cancel-cast {
    top: 77px;
    right: 18px;
    width: 54px;
    height: 54px;
  }
  #cancel-cast b {
    font-size: 34px;
    line-height: 47px;
  }
}
@media (max-width: 740px) and (orientation: landscape) {
  .ready-room {
    grid-template-columns: 22% 31% 47%;
  }
  .roster-choice span {
    font-size: 11px;
  }
  .roster-choice img {
    width: 31px;
    height: 37px;
  }
  .aux-card b {
    font-size: 11px;
  }
  .aux-card img {
    width: 27px;
    height: 27px;
  }
  .aux-card {
    gap: 5px;
    padding: 5px 4px;
  }
  .ready-footer {
    gap: 12px;
  }
  .growth-control > label {
    font-size: 11px;
  }
  .card-config {
    gap: 6px;
    font-size: 11px !important;
  }
  .ready-footer > .primary {
    min-width: 160px;
    font-size: 13px;
  }
  .ready-footer > .primary > span {
    margin-left: 10px;
  }
  .menu-content {
    left: 61%;
    right: 3%;
  }
  .menu h1 {
    font-size: 30px;
  }
  .menu-actions > .vn-choice {
    font-size: 20px;
  }
  .preferences {
    grid-template-columns: 115px minmax(0, 1fr);
  }
  .sheet-content {
    padding: 13px 18px;
  }
  .sheet-nav > button {
    font-size: 12px;
    padding: 9px 10px;
  }
  .setting-row {
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 13px;
  }
}
@media (max-height: 380px) {
  :root {
    --head:44px;
    --foot:53px;
  }
  .ready-room {
    padding-top: 0;
  }
  .roster-panel,
  .ready-loadout {
    padding-top: 4px;
  }
  .ready-stats > div {
    min-height: 27px;
    padding: 5px 3px;
  }
  .ready-stats strong {
    font-size: 18px;
  }
  .roster-choice {
    min-height: 49px;
  }
  .roster-choice img {
    height: 36px;
    width: 33px;
  }
  .ready-stats {
    padding: 8px 0;
  }
  .passive-button {
    font-size: 11px;
    padding: 6px 0;
  }
  .aux-card {
    min-height: 36px;
  }
  .aux-card img {
    width: 27px;
    height: 27px;
  }
  .aux-inspector {
    min-height: 55px;
    margin-top: 6px;
  }
  .aux-inspector p {
    font-size: 11px;
  }
  .menu h1 {
    margin-bottom: 18px;
  }
  .menu-actions {
    gap: 4px;
  }
  .menu-actions > .vn-choice {
    min-height: 36px;
    font-size: 19px;
  }
  .sheet-content {
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .setting-row {
    min-height: 44px;
  }
  .switch-row {
    min-height: 35px;
  }
  .key-table label {
    min-height: 28px;
  }
  .layout-mini {
    height: 75px;
  }
  .layout-mini i {
    width: 46px;
    height: 46px;
  }
  .layout-mini i:after {
    top: 13px;
    right: 13px;
    bottom: 13px;
    left: 13px;
  }
  .layout-mini img {
    width: 42px;
    height: 42px;
  }
  .layout-mini img:last-child {
    width: 29px;
    height: 29px;
  }
  .sheet-content h3 {
    font-size: 16px;
    margin-bottom: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
#layout-preview {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  background: #18272e;
  color: #eaf0ec;
  isolation: isolate;
}
#layout-preview::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(#a4bcb30c 1px, transparent 1px),
    linear-gradient(
      90deg,
      #a4bcb30c 1px,
      transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.layout-preview-heading {
  position: absolute;
  top: 20px;
  left: 24px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  z-index: 2;
  pointer-events: none;
}
.layout-preview-heading b {
  font-size: 20px;
}
.layout-preview-heading span {
  font-size: 12px;
  color: #b1c4bf;
}
.layout-preview-guide {
  position: absolute;
  left: 50%;
  top: 63%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(130, 155, 149, .4);
  font-size: 12px;
  pointer-events: none;
}
.layout-preview-guide i {
  display: block;
  width: 44px;
  height: 83px;
  border: 1px solid #8ba69b44;
  border-radius: 24px 24px 7px 7px;
  margin: 0 auto 12px;
}
#cancel-cast {
  right: auto;
  display: grid;
  place-items: center;
  opacity: 1;
}
#cancel-cast b {
  font-size: 5vh;
  line-height: 1;
}
body.editing #cancel-cast {
  opacity: 1;
}
#layout-preview #layout-editor {
  top: 65px;
}
@media (max-height: 420px) {
  .layout-preview-heading {
    top: 13px;
    left: 18px;
  }
  .layout-preview-heading b {
    font-size: 16px;
  }
  .layout-preview-heading span {
    font-size: 11px;
  }
  #layout-preview #layout-editor {
    top: 52px;
    max-height: calc(100% - 64px);
  }
}
html.orientation-dismissed #orientation-hint {
  display: none !important;
}
#orientation-hint #orientation-continue {
  background: transparent;
  color: #526c3c;
  border: 1px solid #a2b38e;
  margin-top: 10px;
}
.simulated-landscape :is(#online-screen, .panel-scroll, .card-library-grid, .owned-decks, .all-card-stats, .draft-choices, .card-description, .round-transition) {
  touch-action: none;
  overscroll-behavior: contain;
}
#dash-state {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  white-space: nowrap;
  color: rgba(210, 231, 223, .733);
  pointer-events: none;
}

/* dist/card-ui.css */
#card-screen {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  background: rgba(18, 37, 43, .91);
  backdrop-filter: blur(5px);
  color: #f7faf9;
  touch-action: pan-y;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  animation: cards-in .2s ease-out;
}
#card-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cards-header {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
  padding: 3vh 4vw 8px;
  min-height: 60px;
}
.cards-heading {
  display: flex;
  align-items: baseline;
  gap: 18px;
  min-width: 0;
}
.cards-heading h2 {
  margin: 0;
  font-size: 4.7vh;
  white-space: nowrap;
  letter-spacing: .02em;
}
.cards-heading > span {
  font-size: 2.4vh;
  color: #bfcecf;
  line-height: 1.4;
}
.cards-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}
.cards-actions > button {
  background: #f4f7f6;
  color: #263136;
  border-radius: 25px;
  padding: 9px 15px;
  font-weight: 650;
  font-size: 2.6vh;
  white-space: nowrap;
  min-height: 38px;
}
.cards-actions > button:hover {
  background: #ffdf85;
}
.cards-actions > .cards-close {
  background: transparent;
  color: #8ce5db;
  font-size: 34px;
  line-height: 1;
  padding: 0;
  width: 44px;
  height: 44px;
  min-height: 44px;
}
.draft-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9vw;
  font-size: 13px;
  flex: none;
  min-height: 25px;
  color: #d4e0de;
}
.round-quality {
  font-size: 13px;
  font-weight: 650;
  color: #b7ebff;
}
.round-quality.rarity-purple {
  color: #cfb2ff;
}
.round-quality.rarity-rainbow {
  color: #ffe49a;
}
.round-quality.rarity-equipment {
  color: #e7ccaa;
}
.draft-choices {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3vw;
  padding: 10px 24px 12px;
  perspective: 1200px;
}
.choice-card {
  display: block;
  position: relative;
  isolation: isolate;
  background: #f0f4ef;
  --quality:#71d9fa;
  --foil:linear-gradient(
      100deg,#86dcee,#aed9e9);
  border-radius: 1.4vw;
  border: 1px solid #b5c6cc;
  padding: 0;
  aspect-ratio: 2/3;
  color: #293442;
  box-shadow: 0 10px 24px rgba(2, 12, 17, .24);
  transition:
    transform .2s,
    filter .2s,
    box-shadow .2s;
  overflow: hidden;
  text-align: center;
  touch-action: pan-y;
  flex: none;
}
.draft-choices > .choice-card {
  height: 100%;
  max-height: 540px;
  max-width: 27vw;
  width: auto;
  animation: card-deal .35s backwards;
}
.draft-choices > .choice-card:nth-child(1) {
  transform: rotate(-2deg);
  animation-delay: .04s;
}
.draft-choices > .choice-card:nth-child(2) {
  animation-delay: .1s;
}
.draft-choices > .choice-card:nth-child(3) {
  transform: rotate(2deg);
  animation-delay: .16s;
}
.choice-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background:
    linear-gradient(
      135deg,
      #29374c,
      #1b293b 68%,
      #263c49);
  clip-path: polygon(0 0, 100% 0, 100% 44%, 0 53%);
  pointer-events: none;
}
.choice-card::after {
  content: "";
  position: absolute;
  inset: 43% 0 auto;
  height: 11%;
  z-index: 1;
  clip-path: polygon(0 82%, 100% 0, 100% 17%, 0 100%);
  background: var(--foil);
  pointer-events: none;
}
.choice-card.rarity-blue {
  --quality:#71d9fa;
  --foil:linear-gradient(
      100deg,#6ecfea,#c4eff4);
}
.choice-card.rarity-purple {
  --quality:#c7a2ff;
  --foil:linear-gradient(
      100deg,#9775cf,#e7d6fa);
}
.choice-card.rarity-rainbow {
  --quality:#ffe19a;
  --foil:linear-gradient(
      100deg,#8edccc,#a9ccee 30%,#d5b7e9 62%,#f6d890);
}
.choice-card.rarity-equipment {
  --quality:#e5c594;
  --foil:linear-gradient(
      100deg,#ba9565,#edd9b3);
}
.choice-card:hover {
  color: #293442;
  filter: brightness(1.06);
  box-shadow: 0 15px 30px rgba(3, 13, 20, .314);
}
.choice-card.selected {
  outline: 3px solid #ffe879;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 232, 121, .094), 0 16px 32px rgba(6, 16, 24, .376);
  transform: translateY(-3px) !important;
}
.choice-card .card-kind {
  position: absolute;
  right: 7%;
  top: 5%;
  font-size: 2.2vh;
  color: rgba(219, 228, 242, .79);
  border: 1px solid #dbe4f238;
  border-radius: 5px;
  padding: 2px 6px;
  letter-spacing: .02em;
  z-index: 3;
}
.card-emblem {
  position: absolute;
  left: 18%;
  top: 8%;
  width: 64%;
  height: 42.667%;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
}
.card-emblem svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.card-copy {
  position: absolute;
  z-index: 2;
  top: 53%;
  left: 8%;
  right: 8%;
  bottom: 8%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
}
.card-copy > strong {
  font-size: 3.8vh;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: -.04em;
  color: #253142;
}
.card-tags {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex: none;
}
.card-tags i {
  font-style: normal;
  white-space: nowrap;
  background: #8176aa;
  color: #fff;
  padding: 2px 9px;
  border-radius: 15px;
  font-size: 2.1vh;
  line-height: 1.2;
}
.rarity-blue .card-tags i {
  background: #5e9ebd;
}
.rarity-equipment .card-tags i {
  background: #a68a61;
}
.card-description {
  font-size: 2.65vh;
  font-weight: 600;
  line-height: 1.43;
  text-align: left;
  overflow: auto;
  width: 100%;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  color: #34404d;
  overflow-wrap: anywhere;
  padding: 1px 0;
  overscroll-behavior: contain;
}
.card-quality {
  position: absolute;
  z-index: 2;
  left: 8%;
  bottom: 3.7%;
  font-size: 10px;
  line-height: 1;
  color: rgba(107, 118, 145, .49);
}
.card-check {
  display: none;
  position: absolute;
  z-index: 4;
  left: 7%;
  top: 5%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffe77b;
  color: #28323b;
  font-size: 17px;
  font-weight: 800;
  place-items: center;
}
.selected > .card-check {
  display: grid;
}
.cards-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3vw;
  padding: 0 24px 3vh;
  min-height: 60px;
  flex: none;
}
.card-confirm {
  background: #ffe77c;
  color: #283035;
  border-radius: 30px;
  min-width: 190px;
  min-height: 44px;
  padding: 10px 30px;
  font-size: 3.8vh;
  font-weight: 800;
  box-shadow: 0 4px 0 #c8b654, 0 6px 16px rgba(6, 12, 21, .145);
}
.card-confirm:hover {
  color: #182328;
  background: #fff09c;
}
.card-confirm:disabled {
  opacity: .42;
  box-shadow: none;
}
.card-confirm > span {
  margin-left: 18px;
}
.draft-refresh {
  border: 1px solid #eef9f454;
  color: #e7f5f0;
  border-radius: 22px;
  min-height: 40px;
  padding: 8px 17px;
  font-size: 14px;
}
.draft-refresh > span {
  display: inline-grid;
  place-items: center;
  background: #e6f3ee;
  color: #1d343d;
  border-radius: 20px;
  min-width: 25px;
  margin-left: 9px;
  padding: 2px 5px;
  font-variant-numeric: tabular-nums;
}
.draft-phase {
  font-size: 13px;
  color: #a8bfbe;
  font-variant-numeric: tabular-nums;
}
.draft-empty {
  text-align: center;
  align-self: center;
  color: #dce7e5;
  max-width: 440px;
  font-size: 15px;
}
.draft-empty button {
  padding: 10px 18px;
  background: #fff;
  color: #23353a;
  border-radius: 20px;
}
.card-library-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 4vw 14px;
  flex: none;
  border-bottom: 1px solid #bfd6d321;
}
.card-side-tabs,
.card-filter-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.card-side-tabs > button,
.card-filter-tabs > button {
  padding: 7px 10px;
  border-radius: 16px;
  color: #c7d6d6;
  font-size: 13px;
}
.card-side-tabs > button.selected {
  background: #f5f8f6;
  color: #25333c;
  font-weight: 650;
}
.card-filter-tabs > button.selected {
  background: #374950;
  color: #fff;
}
#card-search {
  margin-left: auto;
  max-width: 220px;
  width: 20vw;
  background: #f3f8f5;
  color: #27343a;
  border: 0;
  border-radius: 18px;
  font-size: 13px;
  padding: 8px 14px;
}
.card-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px 16px;
  padding: 18px 4vw;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  align-content: start;
  scrollbar-width: thin;
}
.library-card {
  min-width: 0;
  position: relative;
}
.library-card > .choice-card {
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  box-shadow: 0 4px 10px rgba(6, 20, 25, .15);
}
.compact .card-kind {
  font-size: 10px;
  padding: 1px 4px;
}
.compact .card-copy > strong {
  font-size: 2.6vh;
}
.compact .card-description {
  font-size: 2.2vh;
  line-height: 1.4;
  font-weight: 550;
}
.compact .card-tags i {
  font-size: 10px;
  padding: 2px 7px;
}
.compact .card-copy {
  gap: 4px;
}
.library-card-state {
  display: block;
  text-align: center;
  font-size: 11px;
  min-height: 20px;
  padding-top: 7px;
  color: #becfcf;
}
.library-card.held .library-card-state {
  color: #ffe8a5;
}
.library-card.family-held {
  opacity: .45;
}
.library-footer {
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid #bfd6d321;
  gap: 18px;
}
.library-footer > span {
  margin-right: auto;
  color: #b2c9c7;
  font-size: 12px;
}
.library-footer .quiet {
  color: #cee1dc;
}
.library-footer .card-confirm {
  font-size: 17px;
  min-width: 145px;
  min-height: 38px;
  padding: 8px 20px;
}
.owned-decks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 0;
  gap: 30px;
  padding: 4px 4vw 20px;
  overflow: auto;
  scrollbar-width: thin;
}
.owned-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 12px;
  border-bottom: 1px solid #bfd6d338;
  margin-bottom: 16px;
}
.owned-heading h3 {
  font-size: 18px;
  margin: 0;
}
.owned-heading > span {
  color: #b9d0ce;
  font-size: 13px;
}
.owned-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  align-content: start;
}
.owned-card-grid > .choice-card {
  width: 100%;
}
.cards-empty {
  text-align: center;
  padding: 40px 8px;
  color: #b7cdca;
  font-size: 15px;
  grid-column: 1/-1;
}
.stats-side-tabs {
  padding: 4px 4vw 12px;
}
.all-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
  padding: 4px 4vw 24px;
  overflow: auto;
  min-height: 0;
  flex: 1;
  align-content: start;
  scrollbar-width: thin;
}
.all-card-stats > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 73px;
  padding: 10px 0;
  border-bottom: 1px solid #b5cecb2a;
}
.all-card-stats span {
  font-size: 12px;
  color: #b9cfcd;
}
.all-card-stats strong {
  font-size: 3.7vh;
  line-height: 1.35;
  font-weight: 550;
  color: #f9f7e9;
  font-variant-numeric: tabular-nums;
}
.round-transition {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 12px 24px 24px;
  text-align: center;
  overflow: auto;
}
.round-number {
  font-size: 9vh;
  font-weight: 750;
  color: #fff5c8;
}
.round-number > span {
  margin: 0 28px;
  color: #85c6c4;
  font-size: .7em;
}
.round-transition h3 {
  font-size: 22px;
  margin: 8px 0;
}
.round-transition p {
  font-size: 14px;
  color: #b7ceca;
  max-width: 550px;
  line-height: 1.7;
}
.round-result-buttons {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.round-result-buttons > button {
  background: #f4f7f3;
  color: #28383a;
  border-radius: 10px;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 750;
  min-width: 170px;
}
.round-result-buttons span {
  display: block;
  font-size: 11px;
  font-weight: 450;
  color: #697977;
  margin-top: 8px;
}
.card-tool-summary {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #414b4a;
}
.card-tool-summary strong {
  font-size: 22px;
  font-weight: 550;
}
.card-tool-summary span {
  font-size: 13px;
  color: #737e79;
}
.card-tool-actions {
  display: grid;
  gap: 9px;
}
.card-tool-actions button {
  padding: 12px 16px;
  border-radius: 6px;
  text-align: left;
  background: #e9ebe4;
  color: #3d4641;
  font-size: 14px;
  font-weight: 550;
}
.game-round-label {
  position: absolute;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  color: #d6e1d9;
  font-size: 11px;
  letter-spacing: .5px;
  pointer-events: none;
  text-shadow: 0 1px 3px #000;
}
.game-nav {
  flex-wrap: wrap;
  justify-content: center;
  max-width: 40%;
  gap: 4px;
}
.game-nav button {
  font-size: 11px;
  padding: 5px 7px;
  white-space: nowrap;
}
@keyframes card-deal {
  from {
    opacity: 0;
    transform: translateY(15px) scale(.94);
  }
}
@keyframes cards-in {
  from {
    opacity: 0;
  }
}
@media (max-height: 420px) {
  .cards-header {
    min-height: 46px;
    padding-top: 7px;
    padding-bottom: 4px;
  }
  .cards-actions > button {
    min-height: 32px;
    padding: 6px 11px;
    font-size: 12px;
  }
  .cards-actions > .cards-close {
    width: 38px;
    height: 38px;
    min-height: 38px;
    font-size: 30px;
  }
  .cards-heading {
    gap: 10px;
  }
  .cards-footer {
    min-height: 50px;
    padding-bottom: 9px;
  }
  .card-confirm {
    min-height: 38px;
    padding: 8px 25px;
    min-width: 155px;
    font-size: 20px;
  }
  .draft-topline {
    min-height: 21px;
    font-size: 11px;
  }
  .draft-choices {
    padding-top: 7px;
    padding-bottom: 8px;
  }
  .card-copy {
    gap: 3px;
  }
  .card-copy > strong {
    font-size: 18px;
  }
  .card-description {
    font-size: 12px;
    line-height: 1.35;
  }
  .card-tags i {
    font-size: 10px;
  }
  .card-library-bar {
    padding-top: 5px;
    padding-bottom: 8px;
    gap: 8px;
  }
  .card-side-tabs > button,
  .card-filter-tabs > button {
    font-size: 11px;
    padding: 5px 8px;
  }
  .card-library-grid {
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 15px;
    padding-top: 13px;
  }
  .library-footer > span {
    font-size: 11px;
  }
  .all-card-stats > div {
    min-height: 61px;
  }
  .all-card-stats strong {
    font-size: 17px;
  }
  .game-round-label {
    top: 78px;
  }
  .round-result-buttons > button {
    padding: 12px 16px;
    font-size: 16px;
    min-width: 150px;
  }
  .round-transition h3 {
    font-size: 18px;
    margin: 3px;
  }
  .round-transition p {
    margin: 5px;
    font-size: 12px;
  }
}
@media (max-width: 740px) {
  .cards-heading > span {
    max-width: 140px;
    font-size: 10px;
  }
  .cards-header {
    gap: 8px;
    padding-left: 16px;
    padding-right: 12px;
  }
  .cards-actions {
    gap: 5px;
  }
  .cards-actions > button {
    padding-left: 8px;
    padding-right: 8px;
  }
  .card-library-bar {
    flex-wrap: wrap;
    gap: 3px 10px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .card-filter-tabs {
    margin-left: auto;
  }
  #card-search {
    width: 100%;
    max-width: none;
    margin-left: 0;
    height: 30px;
  }
  .draft-choices {
    gap: 14px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .owned-decks {
    gap: 18px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .owned-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  }
  .library-footer > span {
    max-width: 180px;
    line-height: 1.4;
  }
  .all-card-stats {
    gap: 0 18px;
  }
  .game-nav {
    max-width: 42%;
  }
  .game-nav button {
    padding: 4px 5px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #card-screen,
  .draft-choices > .choice-card {
    animation: none;
  }
  .choice-card {
    transition: none;
  }
}
.choice-card::before {
  clip-path: polygon(0 0, 100% 0, 100% 28%, 0 36%);
}
.choice-card::after {
  top: 27%;
  height: 10%;
}
.card-emblem {
  top: 3%;
  left: 30%;
  width: 40%;
  height: 28%;
}
.card-copy {
  top: 37%;
  bottom: 7%;
  left: 7%;
  right: 7%;
}
.card-copy > strong {
  font-size: 3.4vh;
}
.card-description {
  font-size: 2.6vh;
  line-height: 1.4;
}
.draft-choices {
  align-items: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
}
.draft-choices > .choice-card {
  height: 100%;
  min-height: 265px;
  max-width: 27vw;
  aspect-ratio: 2/3;
}
.library-card > .choice-card,
.owned-card-grid > .choice-card {
  height: auto;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  min-height: 245px;
}
.compact::before {
  inset: 0 0 auto;
  height: 104px;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
}
.compact::after {
  top: 81px;
  height: 24px;
}
.compact .card-emblem {
  top: 7px;
  left: calc(50% - 39px);
  width: 78px;
  height: 78px;
}
.compact .card-kind {
  top: 7px;
  right: 6px;
  font-size: 9px;
}
.compact .card-copy {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  margin: 112px 10px 30px;
  gap: 6px;
  flex: 1;
}
.compact .card-copy > strong {
  font-size: 2.6vh;
  white-space: normal;
  line-height: 1.2;
}
.compact .card-description {
  overflow: visible;
  flex: none;
  font-size: 12px;
  line-height: 1.5;
  min-height: 54px;
}
.compact .card-quality {
  bottom: 12px;
  font-size: 10px;
}
@media (max-height: 420px) {
  .card-copy {
    gap: 3px;
  }
  .card-copy > strong {
    font-size: 17px;
  }
  .card-description {
    font-size: 12px;
    line-height: 1.35;
  }
  .draft-choices > .choice-card {
    min-height: 265px;
  }
  .compact .card-description {
    font-size: 12px;
    line-height: 1.5;
  }
}
.draft-choices .card-description {
  overflow: visible;
  flex: none;
}
.draft-choices .long-effect .card-description {
  overflow: auto;
  flex: 1;
}
@media (max-height: 420px) {
  .draft-choices > .choice-card {
    min-height: 225px;
  }
  .draft-choices > .choice-card::before {
    clip-path: polygon(0 0, 100% 0, 100% 24%, 0 30%);
  }
  .draft-choices > .choice-card::after {
    top: 23%;
    height: 8%;
  }
  .draft-choices .card-emblem {
    top: 2%;
    height: 23%;
    width: 35%;
    left: 32.5%;
  }
  .draft-choices .card-copy {
    top: 31%;
    bottom: 6%;
  }
}
@media (max-height: 350px) {
  .draft-choices > .choice-card {
    min-height: 210px;
  }
  .cards-header {
    min-height: 38px;
    padding-top: 3px;
  }
  .cards-footer {
    min-height: 44px;
    padding-bottom: 5px;
  }
  .draft-topline {
    min-height: 18px;
  }
  .draft-choices {
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

/* dist/online.css */
#online-screen {
  overflow-y: auto;
  background: #f2f4f1;
  color: #26373b;
  padding-bottom: 24px;
}
#online-screen button {
  touch-action: manipulation;
}
#online-screen input,
#online-screen select {
  font: inherit;
  background: #fff;
  border: 1px solid #ccd6d8;
  border-radius: 8px;
  padding: 10px;
  color: #253840;
}
#online-screen .page-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(242, 244, 241, .93);
  backdrop-filter: blur(12px);
  gap: 12px;
}
.net-room-code {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.net-room-code b {
  font-size: 22px;
  letter-spacing: 3px;
}
.net-entry {
  max-width: 1050px;
  margin: 25px auto;
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 40px;
  align-items: center;
  padding: 24px;
}
.net-entry-icon {
  width: 100%;
  border-radius: 25%;
  box-shadow: 0 15px 40px rgba(143, 166, 185, .15);
}
.net-entry h2 {
  font-size: 3vw;
  margin: 8px 0 22px;
}
.net-eyebrow,
.net-note {
  font-size: 12px;
  color: #687c83;
}
.net-entry label {
  display: grid;
  gap: 7px;
  margin: 15px 0;
}
.net-entry-actions {
  display: flex;
  gap: 10px;
}
.net-entry-actions button {
  flex: 1;
  padding: 13px;
}
.net-lobby {
  max-width: 1440px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  margin: auto;
  padding: 18px 28px;
}
.net-roster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.net-player {
  min-width: 0;
  text-align: center;
  background: #e5edf0;
  border-radius: 18px;
  padding: 12px;
  position: relative;
}
.net-player.self {
  background: #e9eddf;
}
.net-player-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #647a83;
}
.net-player-head b {
  color: #417a71;
}
.net-portrait {
  height: 28vh;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px #50646f20);
}
.net-player h3 {
  margin: 5px;
}
.net-player > strong {
  font-size: 12px;
}
.net-aux-tags {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 11px;
  margin: 10px 0;
}
.net-aux-tags span {
  background: rgba(255, 255, 255, .5);
  padding: 5px 8px;
  border-radius: 5px;
}
.net-config h3 {
  margin: 6px 0 10px;
  font-size: 15px;
}
.net-config h3 small {
  font-weight: 400;
  color: #6a7a80;
}
.net-character {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 6px;
}
.net-character img {
  width: 50px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}
.net-character span {
  margin-left: auto;
  font-size: 11px;
}
.net-aux-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.net-aux-grid button {
  text-align: left;
  padding: 7px 9px;
  border: 1px solid #d2dbd8;
  border-radius: 8px;
}
.net-aux-grid b {
  display: block;
  font-size: 12px;
}
.net-aux-grid span {
  display: block;
  font-size: 10px;
  color: #66787c;
  margin-top: 4px;
}
.net-aux-grid button.selected {
  background: #e1edec;
  border-color: #739a98;
}
.net-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
  font-size: 12px;
}
.net-target select {
  padding: 6px !important;
}
.net-target > span {
  color: #718086;
  font-size: 11px;
}
#net-ready {
  width: 100%;
  padding: 12px;
}
.net-draft-top,
.net-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
}
.net-draft-top {
  font-size: 13px;
}
.net-draft-top > div {
  display: flex;
  gap: 8px;
}
.net-done {
  font-size: 11px;
  padding: 6px;
  background: #e4e8e6;
  border-radius: 6px;
}
.net-done.selected {
  background: #d5e9df;
  color: #28634d;
}
.net-choices {
  height: 43vh;
  max-width: 1000px;
  margin: 0 auto;
  padding: 5px 24px;
  gap: 15px;
}
.net-choices .choice-card {
  height: 100%;
  min-height: 0;
}
.net-choices .card-copy {
  height: 63%;
}
.net-choices .card-emblem {
  height: 28%;
}
.net-choices .card-description {
  font-size: 12px;
}
.net-draft-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px;
}
.net-panel-heading h3 {
  font-size: 16px;
}
.net-panel-heading > div {
  display: flex;
  gap: 7px;
}
.net-panel-heading button {
  font-size: 12px;
  padding: 8px;
}
.net-decks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 0 24px;
}
.net-decks > section,
.net-final-stats > section {
  background: rgba(255, 255, 255, .66);
  border: 1px solid #dce2dc;
  border-radius: 12px;
  padding: 14px;
  min-width: 0;
}
.net-deck-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.net-deck-title h3 {
  font-size: 14px;
  margin: 0;
}
.net-deck-title small {
  font-weight: 400;
  color: #65787d;
  font-size: 11px;
}
.net-deck-title > b {
  font-size: 12px;
}
.net-owned-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.net-owned-cards .choice-card {
  pointer-events: none;
  min-height: 205px;
}
.net-owned-cards .card-copy {
  height: auto;
  flex: 1;
}
.net-owned-cards .card-description {
  max-height: none;
  overflow: visible;
  font-size: 11px;
}
.net-owned-cards .card-emblem {
  height: 60px;
}
.net-owned-cards .card-quality {
  font-size: 9px;
}
.net-stat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.net-stat-list > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #e1e7e4;
  padding: 8px 0;
  font-size: 11px;
}
.net-stat-list b {
  font-size: 11px;
  text-align: right;
}
.net-result-hero {
  position: relative;
  margin: 12px 24px;
  height: 190px;
  border-radius: 15px;
  overflow: hidden;
  background: #e4edf3;
}
.net-result-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .8;
}
.net-result-hero > div {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, .27);
  text-shadow: 0 2px 12px #fff;
}
.net-result-hero h1 {
  font-size: 42px;
  margin: 0;
}
.net-result-hero p {
  font-size: 10px;
  letter-spacing: 3px;
}
.net-result-hero strong {
  font-size: 30px;
  letter-spacing: 8px;
}
.net-result-hero span {
  font-size: 12px;
}
.net-output {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 12px 24px;
}
.net-output > div {
  background: #e4ebe3;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.net-output span {
  font-size: 12px;
}
.net-output strong {
  font-size: 24px;
}
.net-rematch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 12px;
}
.net-rematch label,
.net-rematch p {
  font-size: 13px;
}
.net-final-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 24px;
}
.net-final-stats h3 {
  font-size: 14px;
}
#online-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  pointer-events: none;
}
.net-live {
  position: absolute;
  top: 49px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #d6e5e2;
  background: rgba(23, 38, 43, .79);
  padding: 5px 12px;
  border-radius: 8px;
}
.net-battle-banner,
.net-banner {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  padding: 25px 45px;
  border: 1px solid #d5e5e6;
  background: rgba(237, 245, 242, .93);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(16, 29, 41, .17);
}
.net-banner {
  top: 20%;
  font-size: 14px;
}
.net-battle-banner strong {
  font-size: 25px;
}
.online-playing #training-toggle,
.online-playing #next-round,
.online-playing #layout-toggle,
.online-playing #pause-toggle {
  display: none;
}
.online-spectator #controls,
.online-spectator #cancel-cast,
.online-spectator #aim-hint,
.online-spectator #game-cards,
.online-spectator #game-stats {
  display: none !important;
}
.online-playing #pause-cover {
  display: none !important;
}
.online-playing .game-nav {
  right: 12px;
  top: 12px;
}
.online-playing #hud {
  pointer-events: none;
}
.online-playing #card-screen [data-card-action=library],
.online-playing #card-screen [data-card-action=draft] {
  display: none !important;
}
@media (max-height: 500px) {
  .net-lobby {
    padding: 8px 16px;
    gap: 15px;
  }
  .net-portrait {
    height: 130px;
  }
  .net-aux-grid button {
    padding: 5px 7px;
  }
  .net-aux-grid span {
    font-size: 9px;
  }
  .net-entry {
    margin: 0 auto;
    gap: 25px;
    padding: 15px 35px;
  }
  .net-entry-icon {
    max-height: 230px;
    object-fit: contain;
  }
  .net-entry h2 {
    margin: 4px 0 10px;
  }
  .net-entry label {
    margin: 8px 0;
  }
  .net-entry input {
    padding: 7px !important;
  }
  .net-entry-actions button {
    padding: 9px;
  }
  .net-choices {
    height: 240px;
  }
  .net-result-hero {
    height: 150px;
  }
  .net-stat-list {
    grid-template-columns: 1fr;
  }
  .net-target {
    margin: 8px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #online-screen * {
    animation: none !important;
    transition: none !important;
  }
}
.net-owned-cards {
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  align-items: start;
}
.net-owned-cards > .choice-card {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  min-height: 245px;
  max-width: 220px;
}
.net-choices .card-copy {
  height: auto;
}
.net-panel-heading {
  position: sticky;
  top: 64px;
  z-index: 1;
  background: #f2f4f1;
}
#online-screen {
  overflow-anchor: none;
  scroll-behavior: auto;
}
#net-choices {
  overflow-anchor: none;
}
.net-live,
.net-banner {
  top: auto;
  left: auto;
  right: 8px;
  bottom: 6px;
  transform: none;
  max-width: 38vw;
  padding: 3px 6px;
  border: 0;
  border-radius: 4px;
  background: rgba(20, 37, 42, .4);
  box-shadow: none;
  color: #cce0dc;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.4;
  text-align: right;
  opacity: .68;
  pointer-events: none;
}
.net-banner {
  font-size: 11px;
  opacity: .85;
}
.net-live #net-ping {
  overflow-wrap: anywhere;
}

/* dist/sr.css */
.menu-character {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 60%;
  z-index: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: #3b5366;
}
.menu-content {
  animation: none;
}
.menu-roster-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 2.3vh;
  letter-spacing: .12em;
  padding: 9px 0;
  margin-top: -16px;
  margin-bottom: 15px;
  border-bottom: 1px solid #81949d55;
  color: #526873;
  background: none;
  border-radius: 0;
}
.menu-roster-button:hover {
  color: #172d40;
  border-color: #a88951;
}
.menu-character:focus-visible {
  outline: 2px solid #b0cfe5;
  outline-offset: -12px;
}
.preview-version {
  position: absolute;
  right: 18px;
  bottom: 12px;
  font: 10px/1.5 system-ui;
  color: #6b7f87;
  pointer-events: none;
}
body[data-menu-character=sukeru-realisyp] #menu {
  background: #edf1f2 url(assets/sr-menu-backdrop.svg) center/cover no-repeat;
}
body[data-menu-character=sukeru-realisyp] #menu-image {
  width: 60%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
}
body[data-menu-character=sukeru-realisyp] .choice-sigil {
  color: #c29b59;
}
body[data-menu-character=sukeru-realisyp] .ready-stage {
  background: #e6edf1;
}
body[data-menu-character=sukeru-realisyp] #ready-portrait {
  object-fit: contain;
}
.net-character-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.net-character:not(.selected) {
  opacity: .65;
}
.net-character.selected {
  outline: 2px solid #b9d9e7;
}
.status-tag[data-status-key^=sr],
.status-tag[data-status-key=armorBreak] {
  border-color: rgba(183, 209, 228, .467);
}
.status-tag[data-status-key=erased] {
  background: #423c56;
  color: #f3dfff;
}
body.sr-cinematic #controls {
  opacity: .065;
  pointer-events: none;
}
body.sr-cinematic #round-label {
  visibility: hidden;
}
body.sr-cinematic .game-nav {
  opacity: .18;
}
body.sr-cinematic #hud {
  opacity: .55;
}
#character-select {
  background: #e9eef1;
  color: #273e51;
  isolation: isolate;
  overflow: hidden;
}
.select-head {
  height: 13vh;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 4vw;
  border-bottom: 1px solid #708d9d33;
  background: #f7f9f8;
  position: relative;
  z-index: 2;
}
.select-head > div {
  display: flex;
  align-items: baseline;
  gap: 24px;
}
.select-head small {
  font: 10px Georgia, serif;
  letter-spacing: .18em;
  color: #788f9d;
}
.select-head h2 {
  font-size: 3.6vh;
  margin: 0;
}
.select-head > span {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: .25em;
  color: #7e96a2;
}
.select-layout {
  height: 74vh;
  display: grid;
  grid-template-columns: 47% 53%;
  max-width: 1500px;
  margin: auto;
}
.select-art {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border-right: 1px solid #718e9d33;
}
.select-art > img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  object-position: center center;
}
.select-art figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 22px 5vw 16px;
  background:
    linear-gradient(
      0deg,
      rgba(255, 255, 255, .96),
      rgba(255, 255, 255, .91) 55%,
      rgba(255, 255, 255, 0));
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
.select-art figcaption > span {
  font: 10px Georgia, serif;
  letter-spacing: .2em;
  color: #7891a2;
}
.select-art figcaption > strong {
  font: 600 4.3vh Georgia, serif;
  color: #304c64;
}
.select-art figcaption > small {
  font-size: 11px;
  letter-spacing: .3em;
  color: #758b98;
}
.select-files {
  padding: 2.5vh 3.3vw 0;
  overflow: auto;
  scrollbar-width: thin;
  touch-action: pan-y;
}
.select-roster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 2.5vh;
}
.select-hero {
  position: relative;
  display: flex;
  text-align: left;
  align-items: center;
  gap: 9px;
  min-height: 68px;
  height: 12vh;
  max-height: 102px;
  border: 1px solid #8ba1ad55;
  border-radius: 3px;
  background: #f5f8f8;
  color: #647b8b;
  padding: 0 10px 0 0;
  overflow: hidden;
  transition: background .15s, border-color .15s;
}
.select-hero img {
  height: 100%;
  width: 34%;
  object-fit: cover;
  object-position: 50% 35%;
  background: #fff;
}
.select-hero span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.select-hero small {
  font: 10px Georgia, serif;
  letter-spacing: .1em;
}
.select-hero b {
  font: 600 2.3vh Georgia, serif;
}
.select-hero i {
  font-style: normal;
  position: absolute;
  right: 6px;
  top: 6px;
  color: #b9985e;
  opacity: 0;
}
.select-hero.selected {
  background: #253e53;
  color: #f6f5eb;
  border-color: #b49966;
}
.select-hero.selected i {
  opacity: 1;
}
.select-hero.selected img {
  opacity: .9;
}
.select-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid #91a8b244;
  padding: 1.6vh 0;
  margin-bottom: 1.5vh;
}
.select-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid #91a8b244;
  padding-left: 14px;
}
.select-stats > div:first-child {
  padding-left: 0;
}
.select-stats > div:last-child {
  border: 0;
}
.select-stats small {
  font-size: 11px;
  color: #6e8594;
}
.select-stats b {
  font: 500 4vh Georgia, serif;
}
.select-stats span {
  font-size: 10px;
  color: #8c9da6;
}
.select-passive {
  display: flex;
  gap: 14px;
  padding: 1vh 0 1.4vh;
  align-items: center;
}
.select-passive > img {
  width: 9vh;
  height: 9vh;
  max-width: 66px;
  max-height: 66px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(157, 181, 194, .333);
}
.select-passive small {
  font-size: 10px;
  color: #8b9ca6;
  letter-spacing: .15em;
}
.select-passive h3 {
  font-size: 2.3vh;
  margin: 3px 0;
}
.select-passive p {
  margin: 0;
  font-size: 1.65vh;
  line-height: 1.65;
  color: #748893;
}
.select-abilities {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1vw;
  margin: 1vh 0;
}
.select-abilities > button {
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #7a8f9b;
}
.select-abilities img {
  width: 100%;
  max-height: 9.5vh;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 1px 5px rgba(36, 68, 94, .133);
}
.select-abilities small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
}
.select-abilities .selected {
  border-color: #b5a078;
  background: rgba(255, 255, 255, .467);
  color: #2f4e64;
}
.select-ability-detail {
  font-size: 1.7vh;
  line-height: 1.75;
  color: #6f8491;
  margin: 1vh 0 12px;
  min-height: 3.5em;
}
.select-footer {
  height: 13vh;
  min-height: 52px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  padding: 8px 4vw;
  border-top: 1px solid #7897a333;
  background: #f7f9f8;
}
.select-footer > span {
  font-size: 12px;
  color: #8597a1;
}
.select-footer .primary {
  min-width: 180px;
  background: #2a4255;
}
.ui-touch-layer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}
.ui-touch {
  position: absolute;
  width: 48px;
  height: 48px;
  margin: -24px;
  border: 1px solid #c0e8f1cc;
  border-radius: 50%;
  animation: ui-touch-ring .42s ease-out forwards;
  box-shadow: 0 0 12px rgba(164, 216, 236, .333);
}
.ui-touch > b {
  position: absolute;
  top: 9px;
  right: 9px;
  bottom: 9px;
  left: 9px;
  border: 1px solid #e6ce9b;
  border-radius: 50%;
}
.ui-touch > em {
  position: absolute;
  left: 23px;
  top: 23px;
  width: 3px;
  height: 8px;
  background: #d9bb80;
  transform-origin: 1px 1px;
  transform: rotate(0deg) translateY(-21px);
}
.ui-touch > em:nth-of-type(2) {
  transform: rotate(90deg) translateY(-21px);
}
.ui-touch > em:nth-of-type(3) {
  transform: rotate(180deg) translateY(-21px);
}
.ui-touch > em:nth-of-type(4) {
  transform: rotate(270deg) translateY(-21px);
}
@keyframes ui-touch-ring {
  0% {
    opacity: 1;
    transform: scale(.3);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}
@media (max-height: 470px) {
  .select-head {
    gap: 12px;
  }
  .select-head small,
  .select-head > span {
    display: none;
  }
  .select-files {
    padding-top: 10px;
  }
  .select-roster {
    margin-bottom: 9px;
    gap: 8px;
  }
  .select-hero {
    min-height: 48px;
  }
  .select-stats {
    padding: 7px 0;
    margin-bottom: 4px;
  }
  .select-stats b {
    font-size: 20px;
  }
  .select-passive {
    padding: 5px 0;
    gap: 9px;
  }
  .select-passive p {
    line-height: 1.45;
  }
  .select-art figcaption {
    padding: 15px 4vw 10px;
  }
  .select-footer {
    gap: 15px;
  }
  .select-footer .primary {
    min-height: 38px;
    padding: 8px 20px;
  }
}

/* <stdin> */

}
