html,
.sk-body {
  height: 100%;
  overflow: hidden;
  background: #070605;
  color: #f3eadc;
  scrollbar-width: thin;
  scrollbar-color: #c6a15a #241c16;
}

/* スマホ長押し／連打の文字選択・コールアウトを抑止（入力欄は除外） */
.sk-body,
.sk-shell,
.sk-shell *,
.sk-modal,
.sk-modal *,
.sk-dex,
.sk-dex * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* iPhone: 待機など連打でダブルタップズームしないようにする（要素自体に必要） */
.sk-body button,
.sk-body [role="button"],
.sk-body .sk-touch-main,
.sk-body .sk-touch-right,
.sk-body .sk-touch-right button,
.sk-body .sk-dpad,
.sk-body .sk-dpad-btn,
.sk-body .sk-dock,
.sk-body .sk-panel,
.sk-modal button,
.sk-dex button {
  touch-action: manipulation;
}

.sk-shell ::selection,
.sk-modal ::selection,
.sk-dex ::selection {
  background: transparent;
  color: inherit;
}

.sk-shell img,
.sk-modal img,
.sk-dex img,
.sk-shell canvas,
.sk-modal canvas,
.sk-dex canvas {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

.sk-shell input,
.sk-shell textarea,
.sk-shell [contenteditable="true"],
.sk-modal input,
.sk-modal textarea,
.sk-modal [contenteditable="true"],
.sk-dex input,
.sk-dex textarea,
.sk-dex [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
  -webkit-tap-highlight-color: rgba(198, 161, 90, 0.25);
}

.sk-body * {
  scrollbar-width: thin;
  scrollbar-color: #c6a15a #241c16;
}

.sk-body *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.sk-body *::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.sk-body *::-webkit-scrollbar-track {
  background: #241c16;
  border-radius: 999px;
}

.sk-body *::-webkit-scrollbar-thumb {
  background: linear-gradient(#e2b15a, #8a6230);
  border: 2px solid #241c16;
  border-radius: 999px;
}

.sk-body *::-webkit-scrollbar-corner {
  background: transparent;
}

.sk-body .site-header,
.sk-body .site-footer,
.sk-help {
  display: none !important;
}

.sk-dialog.sk-ui-help {
  width: min(560px, 100%);
  max-height: min(82vh, 720px);
}
.sk-ui-help > h2 {
  margin: 0 0 0.55rem;
}
.sk-help-block {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.85rem;
  border: 1px solid var(--sk-line-soft, rgba(198, 161, 90, 0.28));
  background: rgba(16, 12, 10, 0.72);
}
.sk-help-block:last-of-type {
  margin-bottom: 0.35rem;
}
.sk-help-block h3 {
  margin: 0 0 0.35rem;
  color: var(--sk-gold, #e2b15a);
  font-size: 0.92rem;
}
.sk-help-block p {
  margin: 0;
  color: #f0e4d4;
  line-height: 1.5;
  font-size: 0.9rem;
}
.sk-help-keys,
.sk-help-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}
.sk-help-keys li {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.95fr) minmax(0, 1.2fr);
  gap: 0.45rem 0.65rem;
  align-items: baseline;
}
.sk-help-key {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.12rem 0.45rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(198, 161, 90, 0.45);
  background: rgba(40, 28, 16, 0.9);
  color: #f0c36a;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}
.sk-help-keys li > span:last-child,
.sk-help-list li {
  color: #f0e4d4;
  font-size: 0.88rem;
  line-height: 1.45;
}
.sk-help-list li {
  padding-left: 0.85rem;
  position: relative;
}
.sk-help-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: #e2b15a;
}
.sk-help-block .sk-help-keys + p,
.sk-help-block p + .sk-help-list {
  margin-top: 0.4rem;
}
@media (max-width: 520px) {
  .sk-help-keys li {
    grid-template-columns: 1fr;
    gap: 0.12rem;
  }
}

.sk-shell {
  margin: 0;
  max-width: none;
  padding: 0;
}

#hub,
#play {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  right: env(safe-area-inset-right, 0px);
  bottom: env(safe-area-inset-bottom, 0px);
  left: env(safe-area-inset-left, 0px);
  z-index: 20;
}

#hub {
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: #0c0908 url("assets/hub-stage.jpg") center / cover no-repeat;
}

#hub::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 50% 48%, rgba(8, 6, 8, 0.08) 0%, rgba(8, 6, 8, 0.42) 58%, rgba(8, 6, 8, 0.78) 100%),
    linear-gradient(180deg, rgba(8, 6, 8, 0.55) 0%, rgba(8, 6, 8, 0.12) 28%, rgba(8, 6, 8, 0.18) 62%, rgba(8, 6, 8, 0.72) 100%);
}

.sk-camp {
  position: relative;
  z-index: 1;
  width: min(1180px, 96vw);
  padding: 1rem 1rem 1.2rem;
}

.sk-camp-home {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  box-sizing: border-box;
  width: min(1280px, 100vw);
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  padding: 0.7rem 0.9rem 0.85rem;
  gap: 0.55rem;
}

.sk-hub-top {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.2fr) auto;
  gap: 0.7rem 1rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  background: rgba(12, 9, 8, 0.72);
  border: 1px solid rgba(198, 161, 90, 0.45);
  border-radius: 1rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.sk-hub-brand h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.sk-hub-brand p {
  margin: 0.15rem 0 0;
  color: #d9cbb8;
  font-size: 0.82rem;
}

.sk-hub-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.sk-hub-chip {
  min-width: 5.6rem;
  padding: 0.35rem 0.6rem;
  background: rgba(24, 18, 14, 0.88);
  border: 1px solid #5c4632;
  border-radius: 0.7rem;
}

.sk-hub-chip span {
  display: block;
  color: #b9a58c;
  font-size: 0.68rem;
}

.sk-hub-chip strong {
  display: block;
  margin-top: 0.08rem;
  color: #f3eadc;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.sk-hub-stage {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}

.sk-hub-rail {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
  z-index: 2;
}

.sk-hub-rail button {
  width: 3.9rem;
  min-height: 3.9rem;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #f3eadc;
  font-weight: 700;
  background:
    linear-gradient(180deg, rgba(68, 48, 28, 0.96), rgba(24, 17, 12, 0.96));
  border: 2px solid #c6a15a;
  border-radius: 0.9rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 170, 0.22),
    0 10px 18px rgba(0, 0, 0, 0.35);
}

.sk-hub-rail-ico {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transform: scale(1.22);
  transform-origin: center;
  image-rendering: auto;
  pointer-events: none;
  filter: saturate(1.2) contrast(1.1) brightness(1.08);
}

.sk-hub-spotlight {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "prev figure next"
    "prev identity next"
    "faces faces faces";
  align-items: center;
  justify-items: center;
}

.sk-hub-turn {
  align-self: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  color: #f0c36a;
  font-size: 1.8rem;
  line-height: 1;
  background: rgba(16, 12, 10, 0.72);
  border: 2px solid #c6a15a;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.sk-hub-spotlight > .sk-hub-turn:nth-of-type(1) {
  grid-area: prev;
  position: relative;
  z-index: 5;
}

.sk-hub-spotlight > .sk-hub-turn:nth-of-type(2) {
  grid-area: next;
  position: relative;
  z-index: 5;
}

.sk-hub-figure {
  grid-area: figure;
  position: relative;
  z-index: 1;
  width: min(52vh, 460px);
  height: min(56vh, 520px);
  display: grid;
  place-items: end center;
  background: transparent;
  margin-bottom: -1.6rem;
  pointer-events: none;
}

.sk-hub-glow {
  display: none;
}

.sk-hub-star {
  position: relative;
  z-index: 1;
  width: auto;
  height: 96%;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  background: transparent;
  image-rendering: auto;
  filter:
    drop-shadow(0 18px 16px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 18px rgba(226, 177, 90, 0.22));
  animation: sk-hub-bob 2.8s ease-in-out infinite;
}

@keyframes sk-hub-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.sk-hub-identity {
  grid-area: identity;
  position: relative;
  z-index: 4;
  width: min(34rem, 92%);
  margin-top: 0.15rem;
  padding: 0.7rem 0.9rem 0.8rem;
  text-align: center;
  background: rgba(12, 9, 8, 0.88);
  border: 1px solid rgba(198, 161, 90, 0.5);
  border-radius: 1rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.sk-hub-identity h2 {
  margin: 0.05rem 0;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.sk-hub-job,
.sk-hub-level {
  margin: 0;
  color: #e2b15a;
  font-weight: 700;
}

.sk-hub-job {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.sk-hub-level {
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.sk-hub-blurb {
  margin: 0.35rem 0 0.55rem;
  color: #d9cbb8;
  font-size: 0.9rem;
  line-height: 1.5;
}

.sk-hub-identity-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.sk-hub-faces {
  grid-area: faces;
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  justify-content: center;
  width: min(42rem, 100%);
  margin-top: 0.45rem;
  padding: 0.35rem;
  overflow-x: auto;
  background: rgba(12, 9, 8, 0.55);
  border: 1px solid rgba(92, 70, 50, 0.7);
  border-radius: 999px;
}

.sk-hub-face {
  flex: none;
  width: 3.2rem;
  height: 3.2rem;
  padding: 0.2rem;
  background: rgba(24, 18, 14, 0.9);
  border: 2px solid #5c4632;
  border-radius: 999px;
}

.sk-hub-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.sk-hub-face.is-on {
  border-color: #f0c36a;
  box-shadow: 0 0 0 2px rgba(240, 195, 106, 0.28);
  background: #2a2118;
}

.sk-hub-dock {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(14rem, 0.8fr);
  gap: 0.7rem;
  align-items: end;
  padding: 0.75rem 0.85rem;
  background:
    linear-gradient(180deg, rgba(18, 13, 10, 0.55), rgba(12, 9, 8, 0.88)),
    url("assets/hub-dock.jpg") center / cover no-repeat;
  border: 2px solid #c6a15a;
  border-radius: 1.1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 170, 0.18),
    0 14px 28px rgba(0, 0, 0, 0.35);
}

.sk-hub-dock-floors {
  min-width: 0;
}

.sk-hub-dock .sk-dive-main {
  margin: 0;
  min-height: 3.6rem;
  font-size: 1.15rem;
}

.sk-warp-stones {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.8rem, 1fr));
  gap: 0.35rem;
  align-content: start;
}

.sk-warp-recent {
  flex: none;
}

.sk-warp-more {
  margin-top: 0.4rem;
}

.sk-warp-more summary {
  cursor: pointer;
  color: #e2b15a;
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 0.3rem;
}

.sk-warp-more .sk-warp-stones {
  max-height: 6.5rem;
  overflow: auto;
  scrollbar-gutter: stable;
  padding-right: 0.15rem;
}

.sk-warp-stone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  min-height: 2.7rem;
  padding: 0.28rem 0.15rem;
  color: #f3eadc;
  font-weight: 700;
  background:
    linear-gradient(180deg, rgba(72, 52, 30, 0.95), rgba(28, 20, 14, 0.96)),
    #241910;
  border: 2px solid #c6a15a;
  border-radius: 0.55rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 170, 0.22),
    0 6px 12px rgba(0, 0, 0, 0.28);
}

.sk-warp-stone span {
  font-size: 0.95rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sk-warp-stone small {
  color: #c6b39a;
  font-size: 0.62rem;
}

.sk-warp-stone:hover,
.sk-warp-stone.is-key {
  border-color: #f0c36a;
  color: #fff6df;
}

.sk-warp-stone.is-on {
  color: #fff6df;
  border-color: #f0c36a;
  background:
    linear-gradient(180deg, rgba(110, 74, 28, 0.98), rgba(52, 34, 16, 0.98)),
    #3a2814;
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 170, 0.3),
    0 0 0 2px rgba(240, 195, 106, 0.28),
    0 8px 14px rgba(0, 0, 0, 0.35);
}

.sk-dialog.sk-hub-sheet {
  width: min(720px, 100%);
  max-height: min(86vh, 820px);
}

.sk-dialog.sk-hub-party {
  width: min(900px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: min(86vh, 820px);
  overflow: hidden;
}

.sk-hub-modal-list {
  max-height: min(18rem, 36vh);
  overflow: auto;
  scrollbar-gutter: stable;
}

.sk-hero {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.sk-hero-copy {
  min-width: 0;
  flex: 1;
}

.sk-hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 0.65rem;
  align-items: center;
}

.sk-hero-main,
.sk-hero-util {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.sk-hero-menu {
  position: relative;
}

.sk-hero-menu summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  color: #f3eadc;
  border: 1px solid #c6a15a;
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
}

.sk-hero-menu summary::-webkit-details-marker {
  display: none;
}

.sk-hero-menu[open] summary {
  background: #5c3d16;
  color: #f0c36a;
}

.sk-hero-menu .sk-hero-util {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 0.3rem;
  min-width: 11rem;
  padding: 0.45rem;
  background: rgba(16, 12, 10, 0.96);
  border: 1px solid #c6a15a;
  border-radius: 0.75rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
.sk-hero-menu .sk-hero-util > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.2rem;
  box-sizing: border-box;
  text-align: center;
}

.sk-hero-art,
.sk-portrait,
.sk-ally img,
.sk-party img,
.sk-icon {
  object-fit: contain;
  image-rendering: pixelated;
}

.sk-hero-art {
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45));
}

.sk-kicker {
  margin: 0;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: #e2a54a;
}

.sk-hero h1,
.sk-card h2,
.sk-dialog h2,
.sk-plaque strong,
.sk-skills strong {
  font-family: "Zen Maru Gothic", sans-serif;
}

.sk-hero h1 {
  margin: 0;
  font-size: 2.4rem;
  text-shadow: 0 2px 0 #2a1c10;
}

.sk-subhead {
  margin: 0.85rem 0 0.4rem;
  font-size: 0.95rem;
  color: #e2b15a;
}

.sk-hero p,
.sk-note,
.sk-dialog p {
  margin: 0.2rem 0 0;
  color: #f0e4d4;
  line-height: 1.55;
}

.sk-stats,
.sk-hub-grid {
  display: grid;
  gap: 0.7rem;
}

.sk-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0.7rem 0;
}

.sk-hub-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (min-width: 1100px) {
  .sk-hub-grid {
    grid-template-columns: 1.05fr 1fr 1fr;
  }

  .sk-party-card,
  .sk-camp-card {
    grid-column: 1 / -1;
  }
}

.sk-party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.45rem;
}

.sk-party-grid > .sk-ally,
.sk-party-grid > .sk-note {
  margin: 0;
}

.sk-dive {
  margin-bottom: 0.2rem;
  border-color: #f0c36a;
  background: rgba(28, 20, 12, 0.92);
}

.sk-dive-main {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.95rem 1.25rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.sk-dive-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: end;
  margin-top: 0.7rem;
}

.sk-dive-pick {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: #d9cbb8;
  font-size: 0.78rem;
}

.sk-dive-pick select {
  min-width: 8rem;
  padding: 0.45rem 0.55rem;
  color: #f3eadc;
  background: #1b1612;
  border: 1px solid #5c4632;
  border-radius: 0.55rem;
}

.sk-bag-card .sk-list {
  margin-bottom: 0.2rem;
}

.sk-hero-job {
  color: #b9a58c !important;
  font-size: 0.68rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sk-stat-traits {
  grid-column: span 2;
}

.sk-trait-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.2rem;
  max-height: 4.6rem;
  overflow: auto;
}

.sk-trait-chips em {
  display: inline-flex;
  padding: 0.12rem 0.45rem;
  font-style: normal;
  font-size: 0.78rem;
  color: #f3eadc;
  background: #241910;
  border: 1px solid #5c4632;
  border-radius: 999px;
}

.sk-stats small {
  display: block;
  margin-top: 0.1rem;
  color: #c6b39a;
  font-size: 0.78rem;
}

.sk-bank-row {
  margin-top: 0.15rem;
}

.sk-stats div,
.sk-card,
.sk-dialog,
.sk-plaque,
.sk-dock > * {
  background: rgba(16, 12, 10, 0.86);
  border: 2px solid #e2a54a;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px #6a4a22,
    0 0 0 5px rgba(42, 28, 16, 0.92),
    inset 0 0 0 1px rgba(255, 226, 170, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.4);
}

.sk-stats div,
.sk-card,
.sk-dialog {
  padding: 0.75rem 0.85rem 0.85rem;
}

.sk-stats span,
.sk-floor span,
.sk-vitals p,
.sk-ally span,
.sk-shop span {
  display: block;
  color: #d9cbb8;
  font-size: 0.78rem;
}

.sk-card h2 {
  margin: 0 0 0.45rem;
}

.sk-row,
.sk-shop,
.sk-list,
.sk-party {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sk-recruit-gap {
  flex-basis: 100%;
  height: 0;
}

.sk-dialog.sk-ui-recruit {
  width: min(440px, 100%);
  display: grid;
  gap: 0.75rem;
}

.sk-recruit-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.sk-dialog.sk-ui-recruit img {
  width: 96px;
  height: 96px;
  margin: 0;
  flex-shrink: 0;
}

.sk-recruit-copy {
  min-width: 0;
}

.sk-dialog.sk-ui-recruit h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
  color: #fff6df;
  text-wrap: balance;
}

.sk-dialog.sk-ui-recruit p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #f0e4d4;
}

.sk-recruit-actions,
.sk-recruit-swaps {
  display: grid;
  gap: 0.45rem;
}

.sk-recruit-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sk-recruit-actions:has(> :only-child),
.sk-recruit-actions:not(:has(> :nth-child(3))) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sk-recruit-swaps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 0.15rem;
  border-top: 1px solid rgba(226, 177, 90, 0.28);
}

.sk-dialog.sk-ui-recruit .sk-recruit-actions button,
.sk-dialog.sk-ui-recruit .sk-recruit-swaps button {
  width: 100%;
  min-height: 2.7rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.sk-warps {
  max-height: 8.8rem;
  overflow: auto;
  align-content: flex-start;
}

.sk-hero-picks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}

.sk-hero-pick small {
  white-space: nowrap;
}

.sk-hero-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 0;
  padding: 0.35rem 0.2rem;
  background: #1b1612;
  color: inherit;
  border: 1px solid #5c4632;
  border-radius: 0.55rem;
}

.sk-hero-pick img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  image-rendering: pixelated;
}

.sk-hero-pick span,
.sk-hero-pick small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sk-hero-pick small {
  color: #c6b39a;
  font-size: 0.72rem;
}

.sk-hero-pick.is-on {
  border-color: #e2b15a;
  background: #2a2118;
}

.sk-shop,
.sk-list,
.sk-party {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
}

.sk-shop,
.sk-list {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}

.sk-card > .sk-shop {
  max-height: min(14rem, 32vh);
  overflow: auto;
  scrollbar-gutter: stable;
  padding-right: 0.2rem;
  overscroll-behavior: contain;
}

.sk-bag-card > .sk-list {
  max-height: min(14rem, 32vh);
  overflow: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.sk-card > .sk-shop::-webkit-scrollbar {
  width: 10px;
}

.sk-card > .sk-shop::-webkit-scrollbar-track {
  background: #1b1612;
  border-radius: 999px;
}

.sk-card > .sk-shop::-webkit-scrollbar-thumb {
  background: #8a6840;
  border-radius: 999px;
}

.sk-shop li,
.sk-list li,
.sk-party li,
.sk-ally {
  display: flex;
  justify-content: space-between;
  gap: 0.55rem;
  align-items: center;
  width: 100%;
}

.sk-shop li,
.sk-list li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.7rem;
}

.sk-shop li:not(:has(.sk-icon)):not(:has(.sk-icon-wrap)),
.sk-list li:not(:has(.sk-icon)):not(:has(.sk-icon-wrap)) {
  grid-template-columns: minmax(0, 1fr);
}

.sk-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
}

.sk-icon-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  justify-self: center;
}

.sk-icon-wrap .sk-icon {
  width: 100%;
  height: 100%;
}

.sk-item-tier {
  position: absolute;
  right: -0.2rem;
  bottom: -0.15rem;
  min-width: 1rem;
  padding: 0.05rem 0.22rem;
  border-radius: 999px;
  background: #1a120c;
  border: 1px solid #c6a15a;
  color: #ffe08a;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.sk-icon-ra {
  filter: drop-shadow(0 0 6px rgba(120, 210, 255, 0.55));
}

.sk-icon-rs {
  filter: drop-shadow(0 0 8px rgba(198, 150, 255, 0.7));
}

.sk-icon-rx {
  filter: drop-shadow(0 0 10px rgba(255, 214, 96, 0.85));
}

.sk-icon-rx .sk-item-tier {
  border-color: #ffe08a;
  background: #3a2a10;
  color: #fff6df;
}

.sk-shop .sk-icon,
.sk-list .sk-icon {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 0;
  max-width: 2.75rem;
  max-height: 2.75rem;
  justify-self: center;
  object-fit: contain;
  object-position: center;
}

.sk-item-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.sk-ally img,
.sk-party img {
  width: 56px;
  height: 56px;
  flex: none;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 10px;
}

.sk-boss {
  margin-left: 0.35rem;
  color: #e7a08a;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: 0.15em;
}

.sk-camp-card {
  grid-column: 1 / -1;
}

.sk-camp-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  align-items: end;
}

.sk-camp-filter {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 5.6rem;
  color: #c6b39a;
  font-size: 0.72rem;
  font-weight: 700;
}

.sk-camp-filter select,
.sk-camp-tools select {
  font: inherit;
  font-size: 0.82rem;
  color: #f3eadc;
  background: #1b1612;
  border: 1px solid #5c4632;
  border-radius: 0.45rem;
  padding: 0.22rem 0.35rem;
  min-width: 6.4rem;
}

.sk-camp-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.35rem;
  align-content: start;
  scrollbar-gutter: stable;
}

.sk-camp-list::-webkit-scrollbar {
  width: 10px;
}

.sk-camp-list::-webkit-scrollbar-track {
  background: #1b1612;
  border-radius: 999px;
}

.sk-camp-list::-webkit-scrollbar-thumb {
  background: #8a6840;
  border-radius: 999px;
}

#camp-count {
  color: #c6b39a;
  font-size: 0.85rem;
}

button,
.sk-exit {
  background: linear-gradient(#f0c36a, #d3923a);
  color: #2a1c10;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, 0.7);
}

button:disabled {
  opacity: 0.45;
  cursor: default;
}

.sk-ghost,
.sk-exit {
  background: transparent;
  color: #f3eadc;
  border: 1px solid #c6a15a;
  box-shadow: none;
}

button.sk-ghost.is-on {
  background: #5c3d16;
  color: #f0c36a;
}

.sk-reset {
  margin: 0.8rem 0 0;
}

#play {
  background: #070605;
}

#cv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  image-rendering: pixelated;
  touch-action: none;
}

#mmap {
  width: 180px;
  height: 140px;
  border: 2px solid #c6a15a;
  border-radius: 12px;
  background: rgba(8, 6, 8, 0.8);
  image-rendering: pixelated;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.sk-radar {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  pointer-events: none;
}

.sk-radar button,
.sk-atlas,
.sk-atlas button {
  pointer-events: auto;
}

.sk-radar button,
#map-close {
  border: 1px solid #c6a15a;
  border-radius: 999px;
  background: rgba(16, 12, 10, 0.9);
  color: #f3eadc;
  padding: 0.28rem 0.7rem;
}

.sk-atlas {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  background: rgba(7, 6, 5, 0.72);
  padding: 1rem;
}

.sk-atlas[hidden] {
  display: none !important;
}

.sk-atlas-card {
  width: min(780px, 100%);
  background: rgba(16, 12, 10, 0.94);
  border: 2px solid #e2a54a;
  border-radius: 16px;
  padding: 0.8rem;
  box-shadow: 0 0 0 1px #6a4a22, 0 18px 40px rgba(0, 0, 0, 0.45);
}

#fullmap {
  width: 100%;
  height: auto;
  background: #100c0a;
  image-rendering: pixelated;
  border-radius: 8px;
}

.sk-atlas-card p {
  margin: 0.6rem 0;
  color: #f3eadc;
}

.sk-hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.7rem 0.8rem 0.75rem;
  pointer-events: none;
}

.sk-hud button,
.sk-hud a,
.sk-hud .sk-list,
.sk-hud .sk-skills,
.sk-hud .sk-party {
  pointer-events: auto;
}

.sk-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  margin-right: 196px;
}

.sk-plaque {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.4rem 0.85rem 0.45rem 0.4rem;
}

.sk-portrait {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  background: #241910;
  border: 2px solid #e2a54a;
}

.sk-vitals {
  min-width: 180px;
}

.sk-vitals label,
.sk-floor {
  display: block;
  font-size: 0.92rem;
}

.sk-status {
  color: #f0a090;
  font-style: normal;
  margin-left: 0.35rem;
}

.sk-ailments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin: 0.12rem 0 0.28rem;
  min-height: 0;
}

.sk-ailments.is-empty {
  display: none;
}

.sk-ailment {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.18rem 0.42rem 0.18rem 0.18rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 236, 190, 0.35);
  background: linear-gradient(180deg, rgba(48, 28, 18, 0.95), rgba(22, 14, 10, 0.92));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 12px rgba(255, 180, 80, 0.18);
  color: #fff4df;
  font-size: 0.78rem;
  line-height: 1;
  animation: sk-ailment-pop 0.45s ease-out both, sk-ailment-pulse 1.6s ease-in-out infinite;
}

.sk-ailment img {
  width: 1.15rem;
  height: 1.15rem;
  image-rendering: pixelated;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 4px rgba(255, 220, 140, 0.35));
}

.sk-ailment b {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sk-ailment i {
  font-style: normal;
  opacity: 0.82;
  font-variant-numeric: tabular-nums;
  min-width: 0.9em;
  text-align: right;
}

.sk-ailment-poison {
  border-color: rgba(140, 220, 90, 0.7);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 14px rgba(110, 200, 70, 0.35);
  color: #d8ffb0;
}

.sk-ailment-sleep {
  border-color: rgba(190, 170, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 14px rgba(160, 140, 255, 0.32);
  color: #ebe4ff;
}

.sk-ailment-freeze {
  border-color: rgba(150, 210, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 14px rgba(120, 190, 255, 0.35);
  color: #d8f2ff;
}

.sk-ailment-paralyze {
  border-color: rgba(255, 220, 80, 0.8);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 14px rgba(255, 220, 70, 0.4);
  color: #fff3b0;
}

.sk-ailment-burn {
  border-color: rgba(255, 140, 70, 0.8);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 14px rgba(255, 120, 50, 0.38);
  color: #ffd2b0;
}

.sk-ailment-atkdown,
.sk-ailment-defdown,
.sk-ailment-mdefdown {
  border-color: rgba(255, 150, 150, 0.65);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 12px rgba(220, 100, 100, 0.28);
  color: #ffd4d0;
}

@keyframes sk-ailment-pop {
  from {
    transform: scale(0.72);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes sk-ailment-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
  }
}

.sk-bar {
  display: block;
  height: 10px;
  background: #120e0c;
  border-radius: 99px;
  overflow: hidden;
  margin: 0.18rem 0 0.28rem;
  border: 1px solid #3a312c;
}

.sk-bar > span {
  display: block;
  height: 100%;
}

.sk-bar-hp > span {
  background: linear-gradient(#f08a72, #c44b38);
}

.sk-bar-food > span {
  background: linear-gradient(#f0c36a, #d3923a);
}

.sk-bar-mp > span {
  background: linear-gradient(#8eb7e8, #3d6eaa);
}

.sk-bar-low > span {
  background: linear-gradient(#f08a72, #c44b38);
}

.sk-gold {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  font-weight: 700;
}

.sk-gold img {
  width: 36px;
  height: 36px;
}

.sk-dock {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
  gap: 0.5rem;
  align-items: end;
}

.sk-dock > * {
  padding: 0.55rem 0.65rem 0.65rem;
  max-height: 32vh;
  overflow: auto;
}

.sk-hud .sk-skills button.sk-skill-slot {
  border-radius: 0.85rem;
  font-size: inherit;
}

.sk-dialog.sk-set {
  width: min(720px, 100%);
  max-height: min(86vh, 820px);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow: hidden;
}

.sk-aim {
  position: absolute;
  left: 50%;
  top: 5.6rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(16, 12, 10, 0.88);
  border: 1px solid #c6a15a;
  color: #f3eadc;
}

.sk-modal[hidden] {
  display: none;
}

.sk-modal {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  right: env(safe-area-inset-right, 0px);
  bottom: env(safe-area-inset-bottom, 0px);
  left: env(safe-area-inset-left, 0px);
  z-index: 80;
  background: rgba(8, 6, 8, 0.62);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.sk-dialog {
  width: min(480px, 100%);
  max-height: min(78vh, 640px);
  overflow: auto;
}

.sk-vol {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) 2.2rem;
  align-items: center;
  gap: 0.65rem;
  margin: 0.7rem 0;
  color: #f3eadc;
  font-weight: 700;
}

.sk-vol input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: #e2b15a;
  cursor: pointer;
}

.sk-vol b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sk-dialog [data-choice].is-key,
#hub .is-key,
#breed button.is-key {
  outline: 3px solid #fff6df;
  outline-offset: 3px;
}

.sk-mate-name,
.sk-mate-stat {
  display: block;
}

.sk-mate-name {
  width: 10em;
  white-space: nowrap;
}

.sk-party li > span {
  flex: 1;
  min-width: 0;
}

.sk-party .sk-bar {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.sk-mate-stat {
  color: #c6a15a;
  font-size: 0.78rem;
}

.sk-party .sk-tactic {
  margin-top: 0.28rem;
  padding: 0.16rem 0.5rem;
  font-size: 0.72rem;
}

.sk-grow,
.sk-outlook {
  list-style: none;
  padding: 0;
  margin: 0.45rem 0 0;
}

.sk-grow li {
  display: grid;
  grid-template-columns: 4.2em 2.4em 1.2em 2.4em 2.6em;
  gap: 0.2rem;
  align-items: baseline;
}

.sk-grow i,
.sk-outlook b {
  color: #e2a54a;
  font-style: normal;
}

.sk-dialog img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  image-rendering: pixelated;
}
.sk-dialog .sk-skill-art-img {
  width: 100%;
  height: 100%;
}

.sk-dialog.sk-sheet {
  width: min(560px, 100%);
}

.sk-sheet-who {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0.7rem;
}

.sk-sheet-who button.is-on {
  outline: 2px solid #fff1cc;
  outline-offset: 1px;
}

.sk-sheet-person + .sk-sheet-person {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(226, 177, 90, 0.35);
}

.sk-sheet-head {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.sk-sheet-head h2 {
  margin: 0;
}

.sk-sheet-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.7rem 0 0.2rem;
}

.sk-sheet-stats div {
  background: #1a1614;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}

.sk-sheet-stats span {
  display: block;
  color: #b5a48f;
  font-size: 0.75rem;
}

.sk-sheet-stats b {
  font-variant-numeric: tabular-nums;
}

.sk-sheet-skills {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0.55rem;
}

.sk-sheet-skills li {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.25rem 0.6rem;
  padding: 0.28rem 0;
  border-top: 1px solid rgba(226, 177, 90, 0.18);
}

.sk-sheet-skills span {
  color: #cbbba6;
  font-size: 0.86rem;
}

.sk-level {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sk-level-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.sk-level-head > div {
  min-width: 0;
}

.sk-level .sk-kicker {
  margin: 0;
}

.sk-level h2 {
  margin: 0.12rem 0 0;
}

.sk-level img {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
}

.sk-level .sk-grow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.12rem 0.85rem;
  margin: 0;
}

.sk-level .sk-grow li {
  grid-template-columns: 3.2em 2.2em 1em 2.2em 2.4em;
  gap: 0.12rem;
}

.sk-level [data-choice] {
  margin-top: 0.15rem;
  align-self: flex-start;
}

.sk-keyhint {
  margin: 0.85rem 0 0;
  color: #c6a15a;
  font-size: 0.85rem;
}

.sk-fallen {
  transform: rotate(78deg);
  filter: grayscale(0.65) brightness(0.72);
}

.sk-unlock {
  list-style: none;
  margin: 0.35rem 0 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #e2a54a;
  background: rgba(226, 165, 74, 0.14);
}

.sk-unlock li + li {
  margin-top: 0.45rem;
}

.sk-unlock b {
  display: block;
  color: #ffe08a;
  font-size: 1.05rem;
}

.sk-unlock span {
  display: block;
  color: #f3eadc;
  font-size: 0.86rem;
}

.sk-soon {
  margin: 0.35rem 0 0.2rem;
  color: #c6a15a;
  font-size: 0.82rem;
}

.sk-modal.is-rise {
  animation: sk-rise 0.7s ease;
}

.sk-modal.is-rise .sk-dialog {
  animation: sk-pop 0.7s ease;
}

.sk-modal.is-awaken .sk-dialog {
  box-shadow: 0 0 0 2px #ffe08a, 0 0 32px rgba(226, 165, 74, 0.55);
}

.sk-modal.is-clear {
  background: rgba(8, 6, 4, 0.78);
}

.sk-modal.is-clear .sk-dialog,
.sk-dialog.sk-clear {
  text-align: center;
  box-shadow: 0 0 0 2px #ffe08a, 0 0 40px rgba(226, 165, 74, 0.45);
}

.sk-dialog.sk-clear .sk-kicker {
  margin: 0 0 0.35rem;
  letter-spacing: 0.35em;
  color: #ffe08a;
  font-weight: 900;
}

.sk-dialog.sk-clear img {
  width: min(180px, 42vw);
  height: auto;
  margin: 0.4rem auto 0.6rem;
  display: block;
  filter: drop-shadow(0 0 18px rgba(255, 224, 138, 0.45));
}

.sk-dialog.sk-clear h2 {
  margin: 0.2rem 0 0.55rem;
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  color: #fff6df;
}

@keyframes sk-rise {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sk-pop {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.sk-resist-block {
  margin: 0.35rem 0 0.55rem;
}

.sk-resist-block > .sk-kicker {
  margin: 0.55rem 0 0.28rem;
}

.sk-resist-block > .sk-kicker:first-child {
  margin-top: 0.2rem;
}

.sk-resists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0.15rem 0 0.35rem;
}

.sk-resists-status {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sk-resists li {
  display: flex;
  justify-content: space-between;
  background: #1a1614;
  border-radius: 8px;
  padding: 0.3rem 0.45rem;
}

.sk-g-weak { color: #f0a090; }
.sk-g-reduce { color: #9ec7d8; }
.sk-g-resist { color: #b7d4a8; }
.sk-g-half { color: #9ec7d8; }
.sk-g-immune { color: #aaa; }
.sk-g-absorb { color: #e3a0e0; }
.sk-g-normal { color: #d9cbb8; }

#hub[hidden],
#play[hidden] {
  display: none !important;
}

.sk-dex {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  right: env(safe-area-inset-right, 0px);
  bottom: env(safe-area-inset-bottom, 0px);
  left: env(safe-area-inset-left, 0px);
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(8, 6, 8, 0.72);
  padding: 1rem;
}

.sk-dex[hidden] {
  display: none !important;
}

.sk-dex-panel {
  width: min(920px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  background: #14110f;
  border: 1px solid #c6a15a;
  border-radius: 18px;
  padding: 1rem 1.1rem 1.2rem;
  color: #f3eadc;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

#dex .sk-dex-panel {
  display: flex;
  flex-direction: column;
  height: min(82vh, 760px);
  overflow: hidden;
}

.sk-dex-head {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.sk-dex-head h2 {
  margin: 0;
  font-family: "Zen Maru Gothic", sans-serif;
}

.sk-dex-head p {
  margin: 0;
  color: #c6a15a;
}

#dex-count {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1.4;
  font-size: 0.82rem;
}

.sk-dex-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.35rem 0.55rem;
  margin: 0.45rem 0 0;
  flex: none;
}

.sk-dex-tools label,
.sk-dex-filter {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 5.4rem;
  color: #c6b39a;
  font-size: 0.7rem;
  font-weight: 700;
}

.sk-dex-tools select,
.sk-dex-filter select {
  font: inherit;
  font-size: 0.82rem;
  color: #f3eadc;
  background: #1b1612;
  border: 1px solid #5c4632;
  border-radius: 0.45rem;
  padding: 0.28rem 0.4rem;
  min-width: 5.6rem;
}

.sk-dex-shown {
  align-self: center;
  color: #c6a15a;
  font-size: 0.78rem;
  font-weight: 700;
}

.sk-dex-head button {
  margin-left: auto;
}

.sk-dex-layout,
#dex-body {
  margin-top: 0.85rem;
}

#dex-body {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  gap: 0.9rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

#breed .sk-dex-panel {
  display: flex;
  flex-direction: column;
  height: min(86vh, 820px);
  overflow: hidden;
}

#breed-body {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.sk-breed-rules {
  margin: 0 0 0.8rem;
  padding-left: 1.15rem;
  color: #d9cbb8;
  line-height: 1.55;
}

.sk-breed-rules li {
  margin: 0.12rem 0;
}

.sk-breed-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.85rem;
}

.sk-breed-suggest p {
  margin: 0;
}

.sk-breed-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.35fr);
  gap: 0.55rem 0.65rem;
  align-items: stretch;
  flex: none;
}

.sk-breed-slot,
.sk-breed-child {
  background: #1c1814;
  border: 1px solid #3a3128;
  border-radius: 14px;
  padding: 0.75rem;
}

.sk-breed-slot.is-empty,
.sk-breed-child.is-empty {
  border-style: dashed;
  color: #b5a48e;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 9.5rem;
  text-align: center;
}

.sk-breed-kicker {
  margin: 0 0 0.35rem;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: #e2a54a;
}

.sk-breed-plus,
.sk-breed-arrow {
  align-self: center;
  margin: 0;
  color: #e2a54a;
  font-size: 1.5rem;
  font-weight: 700;
}

.sk-breed-arrow {
  font-size: 1.35rem;
}

.sk-breed-next {
  margin: 0.45rem 0 0;
  text-align: center;
  flex: none;
}

.sk-breed-next .sk-breed-go {
  min-width: 8rem;
}

.sk-breed-seat {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  background: transparent;
  color: #f3eadc;
  box-shadow: none;
  border-radius: 12px;
  padding: 0.2rem;
}

.sk-breed-seat img,
.sk-breed-child > img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
}

.sk-breed-seat small,
.sk-breed-ally small {
  display: block;
  color: #c6a15a;
  font-weight: 500;
}

.sk-breed-child {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  min-width: 0;
}

.sk-breed-child h3 {
  margin: 0.1rem 0;
  font-family: "Zen Maru Gothic", sans-serif;
}

.sk-breed-child p,
.sk-breed-slot p {
  margin: 0.15rem 0;
}

.sk-breed-child.is-empty {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  min-height: 6.5rem;
}

.sk-breed-warn {
  color: #f0a090;
}

.sk-breed-inherit {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 0.85rem;
}

.sk-breed-inherit-head {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--sk-line);
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 177, 90, 0.16), transparent 48%),
    rgba(14, 11, 10, 0.9);
  flex: none;
}

.sk-breed-inherit-head img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  image-rendering: pixelated;
}

.sk-breed-inherit-head h3 {
  margin: 0.1rem 0;
  font-family: "Zen Maru Gothic", sans-serif;
}

.sk-breed-inherit-head p {
  margin: 0.12rem 0;
}

.sk-breed-inherit-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sk-breed-inherit-list h3 {
  margin: 0 0 0.45rem;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1rem;
  flex: none;
}

.sk-breed-inherit-list .sk-breed-skills {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0;
  align-content: start;
}

.sk-breed-inherit-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  flex: none;
}

.sk-breed-skills {
  display: grid;
  gap: 0.35rem;
  margin: 0.35rem 0 0.6rem;
}

.sk-breed-skills button {
  display: grid;
  gap: 0.12rem;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.55rem;
  background: rgba(24, 18, 14, 0.92);
  border: 1px solid #5c4632;
  border-radius: 0.65rem;
  color: #f3eadc;
  box-shadow: none;
}

.sk-breed-skills button b {
  font-size: 0.88rem;
  color: #f0c36a;
}

.sk-breed-skills button span {
  font-size: 0.78rem;
  line-height: 1.4;
  color: #d9cbb8;
  font-weight: 500;
  white-space: normal;
}

.sk-breed-skills button.is-on {
  outline: 2px solid #fff6df;
  outline-offset: 1px;
  border-color: #c6a15a;
  background: rgba(48, 34, 18, 0.95);
}

.sk-breed-roster {
  margin-top: 0.85rem;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sk-breed-roster .sk-note {
  margin: 0.7rem 0 0;
  color: #d9cbb8;
  line-height: 1.6;
}

.sk-breed-roster h3 {
  margin: 0 0 0.45rem;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1rem;
  flex: none;
}

.sk-breed-picks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.4rem;
  flex: 1;
  min-height: 14rem;
  overflow: auto;
  margin-bottom: 0;
  padding-right: 0.15rem;
}

.sk-breed-ally {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  text-align: left;
  background: #1c1814;
  color: #f3eadc;
  border: 1px solid #3a3128;
  border-radius: 12px;
  box-shadow: none;
}

.sk-breed-ally.is-on { border-color: #c6a15a; }

.sk-breed-ally.is-locked,
.sk-breed-ally:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.sk-breed-ally img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: pixelated;
}

.sk-breed-ally em {
  color: #e2a54a;
  font-style: normal;
  font-size: 0.78rem;
}

@media (max-width: 860px) {
  .sk-breed-board {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .sk-breed-arrow {
    display: none;
  }
  .sk-breed-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .sk-breed-board { grid-template-columns: 1fr; }
  .sk-breed-plus,
  .sk-breed-arrow { display: none; }
  .sk-breed-child { grid-column: auto; grid-template-columns: 72px minmax(0, 1fr); }
}

.sk-dex-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  align-content: start;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}

.sk-dex-face {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  background: #1c1814;
  border: 1px solid #3a3128;
  border-radius: 12px;
  color: #f3eadc;
  padding: 0.35rem 0.2rem 0.45rem;
  box-shadow: none;
  font-weight: 500;
}

.sk-dex-face.is-on {
  border-color: #c6a15a;
}

.sk-dex-face.is-joined {
  box-shadow: inset 0 0 0 1px rgba(226, 165, 74, 0.5);
}

.sk-dex-joined {
  position: absolute;
  top: 0.18rem;
  right: 0.18rem;
  margin: 0;
  padding: 0.02rem 0.28rem;
  border-radius: 999px;
  background: #5c3d16;
  color: #f0c36a;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.sk-dex-face img,
.sk-dex-detail img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
}

.sk-dex-face.is-unknown img,
.sk-dex-detail img.is-unknown {
  filter: brightness(0);
  opacity: 0.72;
}

.sk-dex-face span {
  font-size: 0.82rem;
}

.sk-dex-detail {
  background: #1a1614;
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  align-self: start;
}

.sk-dex-detail h3 {
  margin: 0.2rem 0;
  font-family: "Zen Maru Gothic", sans-serif;
}

.sk-dex-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.sk-dex-stats li {
  display: flex;
  justify-content: space-between;
  background: #241e1a;
  border-radius: 8px;
  padding: 0.28rem 0.45rem;
}

@media (max-width: 680px) {
  #hub::before {
    background: linear-gradient(180deg, rgba(8, 6, 8, 0.55), rgba(8, 6, 8, 0.82));
  }

  .sk-camp {
    width: 100%;
    padding: 0.9rem 0.75rem 1.6rem;
  }

  .sk-hero {
    align-items: flex-start;
  }

  .sk-hero-art {
    width: 84px;
    height: 84px;
  }

  .sk-hero-nav,
  .sk-hero-main {
    width: 100%;
  }

  .sk-hero-menu {
    margin-left: auto;
  }

  .sk-hero-menu .sk-hero-util {
    left: auto;
    right: 0;
    width: min(14rem, 80vw);
  }

  .sk-camp-home {
    width: 100%;
    padding: 0.55rem 0.55rem 0.7rem;
    gap: 0.45rem;
  }

  .sk-hub-top {
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
  }

  .sk-hub-brand {
    grid-column: 1 / -1;
  }

  .sk-hub-status {
    justify-content: flex-start;
  }

  .sk-hub-chip {
    min-width: 4.6rem;
    padding: 0.28rem 0.45rem;
  }

  .sk-hub-stage {
    grid-template-columns: 3.85rem minmax(0, 1fr);
    gap: 0.4rem;
    min-height: 0;
  }

  .sk-hub-rail button {
    width: 3.45rem;
    min-height: 3.45rem;
    padding: 0;
  }

  .sk-hub-figure {
    width: min(46vw, 220px);
    height: min(34vh, 260px);
  }

  .sk-hub-identity {
    height: fit-content;
    min-height: 0;
    align-self: center;
    padding: 0.4rem 0.6rem 0.45rem;
  }

  .sk-hub-blurb {
    display: none;
  }

  .sk-hub-face {
    width: 2.7rem;
    height: 2.7rem;
  }

  .sk-hub-dock {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .sk-hub-dock .sk-dive-main {
    width: 100%;
    order: -1;
  }

  .sk-hub-dock-floors {
    min-height: 0;
  }

  .sk-warp-more .sk-warp-stones {
    max-height: 28vh;
    overflow: auto;
    padding-right: 0.15rem;
  }

  .sk-party-grid {
    grid-template-columns: 1fr;
  }

  .sk-dock {
    grid-template-columns: 1fr;
  }

  .sk-dive-main {
    font-size: 1.05rem;
  }

  .sk-top {
    margin-right: 0;
  }

  #mmap {
    display: none;
  }

  .sk-hero h1 {
    font-size: 1.8rem;
  }

  #dex-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(8rem, 32vh) minmax(0, 1fr);
  }

  .sk-dex-detail {
    align-self: stretch;
  }
}


.sk-ult[hidden] {
  display: none !important;
}

.sk-ult {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
  --ult: #9ad7ff;
  --ult-deep: #143a5c;
  --ult-glow: rgba(154, 215, 255, 0.75);
}

.sk-ult[data-elem="fire"] { --ult: #ff8a3a; --ult-deep: #6a1408; --ult-glow: rgba(255, 120, 40, 0.8); }
.sk-ult[data-elem="ice"] {
  --ult: #d8f6ff;
  --ult-deep: #0c2f4e;
  --ult-glow: rgba(180, 240, 255, 0.92);
}
.sk-ult[data-elem="thunder"] { --ult: #ffe95a; --ult-deep: #5a4208; --ult-glow: rgba(255, 230, 80, 0.85); }
.sk-ult[data-elem="wind"] { --ult: #9ef0b0; --ult-deep: #145030; --ult-glow: rgba(140, 240, 170, 0.75); }
.sk-ult[data-elem="earth"] { --ult: #e0a860; --ult-deep: #4a2810; --ult-glow: rgba(220, 160, 80, 0.75); }
.sk-ult[data-elem="light"] { --ult: #fff0a0; --ult-deep: #6a5010; --ult-glow: rgba(255, 235, 140, 0.9); }
.sk-ult[data-elem="dark"] { --ult: #c59bff; --ult-deep: #1a0830; --ult-glow: rgba(180, 120, 255, 0.8); }
.sk-ult[data-elem="slash"] { --ult: #fff0c8; --ult-deep: #3a2810; --ult-glow: rgba(255, 230, 180, 0.8); }
.sk-ult[data-elem="arcane"] {
  --ult: #fff4dc;
  --ult-deep: #120e0a;
  --ult-glow: rgba(255, 236, 200, 0.9);
}

.sk-ult-art-bg,
.sk-ult-art-slash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  display: none;
}

.sk-ult.is-rich .sk-ult-art-bg,
.sk-ult.is-rich .sk-ult-art-slash {
  display: block;
}

.sk-ult.is-rich .sk-ult-art-bg {
  filter: contrast(1.12) saturate(1.08) brightness(0.82);
  transform: scale(1.08);
}

.sk-ult.is-rich .sk-ult-art-slash {
  mix-blend-mode: screen;
  object-fit: contain;
  width: 140%;
  left: -20%;
  top: 8%;
  height: 70%;
  filter: brightness(1.25) contrast(1.2);
}

.sk-ult.is-rich.is-play .sk-ult-art-bg {
  animation: sk-ult-art-bg 2.2s cubic-bezier(0.12, 0.8, 0.2, 1) forwards;
}

.sk-ult.is-rich.is-play .sk-ult-art-slash {
  animation: sk-ult-art-slash 1.15s cubic-bezier(0.08, 0.85, 0.2, 1) 0.18s forwards;
}

.sk-ult.is-rich .sk-ult-veil {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(ellipse at 28% 60%, rgba(255, 236, 200, 0.22), transparent 42%);
}

.sk-ult.is-rich .sk-ult-hero {
  width: min(62vw, 580px);
  max-height: 84vh;
  background: transparent;
  mix-blend-mode: normal;
  filter: contrast(1.06) saturate(1.06) drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
}

.sk-ult-sub {
  margin: 0.55rem 0 0;
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  letter-spacing: 0.28em;
  color: var(--ult);
  font-weight: 800;
  text-shadow: 0 2px 0 #000, 0 0 18px var(--ult-glow);
}

.sk-ult-bars {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#050308 0 11%, transparent 11% 89%, #050308 89% 100%);
  opacity: 0;
}

.sk-ult-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 58%, var(--ult-glow), transparent 48%),
    linear-gradient(100deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.78) 42%, rgba(0, 0, 0, 0.92) 100%);
  opacity: 0;
}

.sk-ult-slash {
  position: absolute;
  left: -30%;
  top: 8%;
  width: 160%;
  height: 54%;
  background: linear-gradient(180deg, transparent, var(--ult-deep) 14%, #fff 46%, var(--ult) 58%, var(--ult-deep) 82%, transparent);
  transform: rotate(-12deg) translateX(-130%);
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(0.5px) saturate(1.35);
  box-shadow: 0 0 40px var(--ult-glow);
}

.sk-ult-stage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: 0.5rem;
  padding: 0 4vw 14vh;
}

.sk-ult-hero {
  width: min(58vw, 520px);
  max-height: 78vh;
  height: auto;
  object-fit: contain;
  object-position: left bottom;
  image-rendering: auto;
  filter: drop-shadow(0 0 28px var(--ult-glow)) drop-shadow(0 22px 30px rgba(0, 0, 0, 0.75)) contrast(1.08) saturate(1.15);
  transform: translate(-24%, 8%) scale(1.2);
  opacity: 0;
}

.sk-ult-copy {
  justify-self: start;
  align-self: center;
  color: #fff8ea;
  transform: translateX(40px) scale(1.12);
  opacity: 0;
}

.sk-ult-kicker {
  margin: 0 0 0.4rem;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  letter-spacing: 0.55em;
  color: var(--ult);
  font-weight: 900;
  text-shadow: 0 0 18px var(--ult-glow), 0 2px 0 #000;
}

.sk-ult-who {
  margin: 0 0 0.15rem;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 0 #000, 0 0 16px var(--ult-glow);
}

.sk-ult-name {
  margin: 0;
  font-size: clamp(3rem, 9vw, 5.8rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fffef8;
  text-shadow:
    0 0 8px var(--ult),
    0 0 28px var(--ult-glow),
    0 4px 0 #0a0604,
    4px 0 0 #0a0604,
    -4px 0 0 #0a0604,
    0 -3px 0 #0a0604,
    0 10px 24px rgba(0, 0, 0, 0.65);
}

.sk-ult-burst {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 38% 55%, #fff 0%, var(--ult) 18%, var(--ult-glow) 36%, transparent 62%);
  opacity: 0;
  mix-blend-mode: screen;
}

.sk-ult.is-play .sk-ult-bars { animation: sk-ult-bars 1.35s ease forwards; }
.sk-ult.is-play .sk-ult-veil { animation: sk-ult-veil 1.35s ease forwards; }
.sk-ult.is-play .sk-ult-slash { animation: sk-ult-slash 0.85s cubic-bezier(0.12, 0.82, 0.2, 1) 0.04s forwards; }
.sk-ult.is-play .sk-ult-hero { animation: sk-ult-hero 0.9s cubic-bezier(0.12, 0.82, 0.2, 1) forwards; }
.sk-ult.is-play .sk-ult-copy { animation: sk-ult-copy 0.75s cubic-bezier(0.12, 0.82, 0.2, 1) 0.12s forwards; }
.sk-ult.is-play .sk-ult-burst { animation: sk-ult-burst 0.65s ease 0.72s forwards; }
.sk-ult.is-out { animation: sk-ult-out 0.28s ease forwards; }

.sk-ult[data-elem="arcane"].is-play .sk-ult-bars { animation-duration: 1.7s; }
.sk-ult[data-elem="arcane"].is-play .sk-ult-veil { animation-duration: 1.7s; }
.sk-ult[data-elem="arcane"].is-play .sk-ult-slash {
  animation: sk-ult-slash-alto 1.15s cubic-bezier(0.08, 0.85, 0.2, 1) forwards;
  height: 28%;
  top: 36%;
  filter: none;
  mix-blend-mode: normal;
  background: linear-gradient(180deg, transparent, #1a140f 10%, #fff8e8 46%, #efe0b8 54%, #1a140f 88%, transparent);
}
.sk-ult[data-elem="arcane"].is-play .sk-ult-hero {
  animation: sk-ult-hero-alto 1.15s cubic-bezier(0.12, 0.82, 0.2, 1) forwards;
}
.sk-ult[data-elem="arcane"].is-play .sk-ult-name {
  animation: sk-ult-name-alto 0.75s cubic-bezier(0.1, 0.9, 0.2, 1) 0.16s both;
}
.sk-ult[data-elem="arcane"].is-play .sk-ult-burst {
  animation: sk-ult-burst-alto 0.7s steps(3, end) 0.9s forwards;
  background: #fff8e8;
  mix-blend-mode: normal;
}
.sk-ult[data-elem="arcane"] .sk-ult-veil {
  background:
    repeating-linear-gradient(180deg, rgba(255, 244, 220, 0.06) 0 10px, transparent 10px 34px),
    linear-gradient(100deg, rgba(10, 8, 6, 0.35) 0%, rgba(8, 6, 5, 0.88) 46%, rgba(4, 3, 2, 0.96) 100%);
}
.sk-ult[data-elem="arcane"] .sk-ult-kicker {
  letter-spacing: 0.8em;
  color: #fff4dc;
  text-shadow: 0 2px 0 #000, 0 0 2px #fff4dc;
}
.sk-ult[data-elem="arcane"] .sk-ult-name {
  text-shadow:
    0 0 2px #fff4dc,
    0 5px 0 #0a0604,
    5px 0 0 #0a0604,
    -5px 0 0 #0a0604,
    0 -4px 0 #0a0604,
    0 12px 0 rgba(0, 0, 0, 0.55);
}

.sk-ult[data-elem="ice"].is-play .sk-ult-bars { animation-duration: 1.55s; }
.sk-ult[data-elem="ice"].is-play .sk-ult-veil { animation-duration: 1.55s; }
.sk-ult[data-elem="ice"].is-play .sk-ult-slash {
  animation: sk-ult-slash-ice 1.05s cubic-bezier(0.1, 0.85, 0.2, 1) 0.02s forwards;
  height: 62%;
  filter: blur(0.2px) saturate(1.55) brightness(1.15);
}
.sk-ult[data-elem="ice"].is-play .sk-ult-hero {
  animation: sk-ult-hero-ice 1.05s cubic-bezier(0.12, 0.82, 0.2, 1) forwards;
}
.sk-ult[data-elem="ice"].is-play .sk-ult-name {
  animation: sk-ult-name-ice 0.7s cubic-bezier(0.12, 0.9, 0.2, 1) 0.18s both;
}
.sk-ult[data-elem="ice"].is-play .sk-ult-burst {
  animation: sk-ult-burst-ice 0.85s ease 0.78s forwards;
  background: radial-gradient(circle at 36% 52%, #fff 0%, #e8f9ff 14%, var(--ult) 30%, transparent 58%);
}
.sk-ult[data-elem="ice"] .sk-ult-veil {
  background:
    radial-gradient(ellipse at 28% 60%, rgba(210, 245, 255, 0.55), transparent 46%),
    linear-gradient(102deg, rgba(6, 24, 40, 0.2) 0%, rgba(4, 14, 28, 0.82) 44%, rgba(2, 8, 18, 0.95) 100%);
}
.sk-ult[data-elem="ice"] .sk-ult-kicker {
  letter-spacing: 0.72em;
  text-shadow: 0 0 22px var(--ult-glow), 0 0 40px rgba(160, 230, 255, 0.55), 0 2px 0 #000;
}

@keyframes sk-ult-bars {
  0% { opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0.4; }
}

@keyframes sk-ult-veil {
  0% { opacity: 0; }
  12% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0.25; }
}

@keyframes sk-ult-slash {
  0% { transform: rotate(-12deg) translateX(-130%); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: rotate(-12deg) translateX(10%); opacity: 0.95; }
}

@keyframes sk-ult-hero {
  0% { transform: translate(-36%, 10%) scale(1.35); opacity: 0; filter: brightness(2.6) drop-shadow(0 0 30px var(--ult-glow)); }
  45% { opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 1; filter: drop-shadow(0 0 28px var(--ult-glow)) drop-shadow(0 22px 30px rgba(0, 0, 0, 0.75)) contrast(1.08) saturate(1.15); }
}

@keyframes sk-ult-copy {
  0% { transform: translateX(64px) scale(1.2); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

@keyframes sk-ult-burst {
  0% { opacity: 0; transform: scale(0.55); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.55); }
}

@keyframes sk-ult-out {
  to { opacity: 0; }
}

@keyframes sk-ult-art-bg {
  0% { opacity: 0; transform: scale(1.18) translateX(-3%); filter: brightness(0.4) contrast(1.3); }
  18% { opacity: 1; }
  70% { opacity: 1; transform: scale(1.04) translateX(0); filter: contrast(1.12) saturate(1.08) brightness(0.88); }
  100% { opacity: 0.82; transform: scale(1.02); filter: contrast(1.1) saturate(1.05) brightness(0.75); }
}

@keyframes sk-ult-art-slash {
  0% { opacity: 0; transform: translateX(-40%) rotate(-8deg) scale(1.1); }
  30% { opacity: 1; }
  100% { opacity: 0.85; transform: translateX(12%) rotate(-4deg) scale(1); }
}

@keyframes sk-ult-slash-alto {
  0% { transform: rotate(-8deg) translateX(-140%) scaleY(0.35); opacity: 0; }
  18% { opacity: 1; }
  55% { transform: rotate(-6deg) translateX(-4%) scaleY(1.35); opacity: 1; }
  100% { transform: rotate(-4deg) translateX(22%) scaleY(1); opacity: 1; }
}

@keyframes sk-ult-hero-alto {
  0% { transform: translate(-48%, 14%) scale(1.5); opacity: 0; filter: contrast(1.4) brightness(0.2); }
  35% { opacity: 1; filter: contrast(1.25) brightness(1.35); }
  100% { transform: none; opacity: 1; filter: contrast(1.12) saturate(1.05) drop-shadow(0 18px 0 rgba(0, 0, 0, 0.85)); }
}

@keyframes sk-ult-name-alto {
  0% { transform: translate(28px, 18px) scale(1.4); opacity: 0; letter-spacing: 0.35em; }
  60% { opacity: 1; }
  100% { transform: none; letter-spacing: 0.04em; }
}

@keyframes sk-ult-burst-alto {
  0% { opacity: 0; }
  20% { opacity: 1; }
  40% { opacity: 0; }
  60% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes sk-ult-slash-ice {
  0% { transform: rotate(-16deg) translateX(-140%) scaleY(0.7); opacity: 0; }
  22% { opacity: 1; }
  55% { transform: rotate(-10deg) translateX(-8%) scaleY(1.15); opacity: 1; }
  100% { transform: rotate(-8deg) translateX(18%) scaleY(1); opacity: 0.9; }
}

@keyframes sk-ult-hero-ice {
  0% { transform: translate(-42%, 12%) scale(1.42); opacity: 0; filter: brightness(2.8) saturate(0.4) drop-shadow(0 0 40px var(--ult-glow)); }
  40% { opacity: 1; }
  70% { filter: brightness(1.25) saturate(1.2) drop-shadow(0 0 36px var(--ult-glow)) drop-shadow(0 22px 30px rgba(0, 0, 0, 0.75)); }
  100% { transform: translate(0, 0) scale(1); opacity: 1; filter: drop-shadow(0 0 34px var(--ult-glow)) drop-shadow(0 22px 30px rgba(0, 0, 0, 0.75)) contrast(1.1) saturate(1.2); }
}

@keyframes sk-ult-name-ice {
  0% { transform: scale(1.35) translateY(12px); opacity: 0; letter-spacing: 0.28em; filter: blur(4px); }
  55% { opacity: 1; filter: blur(0); }
  100% { transform: none; letter-spacing: 0.04em; }
}

@keyframes sk-ult-burst-ice {
  0% { opacity: 0; transform: scale(0.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.85); }
}

@media (max-width: 720px) {
  .sk-ult-stage {
    grid-template-columns: 1fr;
    padding: 0 1rem 16vh;
  }
  .sk-ult-hero {
    width: min(78vw, 340px);
    max-height: 48vh;
  }
  .sk-ult-copy { margin-top: -0.5rem; }
}

/* === modern UI polish v62 === */
:root {
  --sk-ink: #f3eadc;
  --sk-muted: #cbbba6;
  --sk-gold: #e2b15a;
  --sk-gold-deep: #8a6230;
  --sk-panel: rgba(14, 11, 10, 0.88);
  --sk-panel-strong: rgba(10, 8, 8, 0.94);
  --sk-line: rgba(198, 161, 90, 0.55);
  --sk-line-soft: rgba(198, 161, 90, 0.28);
  --sk-danger: #e08070;
}

.sk-chip-row {
  display: grid;
  gap: 0.35rem;
  margin: 0.35rem 0 0.55rem;
}
.sk-chip-label {
  color: var(--sk-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.sk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.sk-chip {
  border: 1px solid var(--sk-line-soft);
  background: rgba(28, 22, 18, 0.9);
  color: var(--sk-ink);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.82rem;
}
.sk-chip.is-on,
.sk-chip:hover {
  border-color: var(--sk-gold);
  background: linear-gradient(180deg, rgba(226, 177, 90, 0.28), rgba(90, 60, 24, 0.45));
  color: #fff6e4;
}

.sk-top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}
.sk-hud-menu-btn {
  pointer-events: auto;
  border: 1px solid var(--sk-line);
  background: var(--sk-panel);
  color: var(--sk-ink);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-weight: 700;
}
.sk-plaque-hero {
  background: var(--sk-panel);
  border: 1px solid var(--sk-line);
  border-radius: 1rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.sk-vitals label {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.35rem;
  align-items: baseline;
}
.sk-vitals label i {
  grid-row: 1 / span 2;
  font-style: normal;
  color: var(--sk-gold);
  font-size: 0.75rem;
  font-weight: 700;
}
.sk-vitals label b {
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}
.sk-vitals .sk-bar {
  grid-column: 2;
}
.sk-floor b {
  color: var(--sk-gold);
  margin-right: 0.4rem;
}
.sk-dpad,
.sk-touch-right {
  display: none;
}

/* D-pad visuals (shown only by mobile media queries) */
.sk-dpad-btn {
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 2px solid rgba(226, 177, 90, 0.55) !important;
  background:
    linear-gradient(180deg, rgba(72, 54, 38, 0.92), rgba(28, 20, 14, 0.96)) !important;
  color: transparent !important;
  box-shadow: inset 0 0 0 1px rgba(255, 220, 160, 0.12) !important;
  pointer-events: none;
}
.sk-dpad-btn::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: auto;
  border-style: solid;
}
.sk-dpad-up {
  grid-column: 2;
  grid-row: 1;
  border-radius: 0.55rem 0.55rem 0.2rem 0.2rem !important;
}
.sk-dpad-up::after {
  border-width: 0 0.42rem 0.55rem 0.42rem;
  border-color: transparent transparent #f0d08a transparent;
}
.sk-dpad-left {
  grid-column: 1;
  grid-row: 2;
  border-radius: 0.55rem 0.2rem 0.2rem 0.55rem !important;
}
.sk-dpad-left::after {
  border-width: 0.42rem 0.55rem 0.42rem 0;
  border-color: transparent #f0d08a transparent transparent;
}
.sk-dpad-right {
  grid-column: 3;
  grid-row: 2;
  border-radius: 0.2rem 0.55rem 0.55rem 0.2rem !important;
}
.sk-dpad-right::after {
  border-width: 0.42rem 0 0.42rem 0.55rem;
  border-color: transparent transparent transparent #f0d08a;
}
.sk-dpad-down {
  grid-column: 2;
  grid-row: 3;
  border-radius: 0.2rem 0.2rem 0.55rem 0.55rem !important;
}
.sk-dpad-down::after {
  border-width: 0.55rem 0.42rem 0 0.42rem;
  border-color: #f0d08a transparent transparent transparent;
}
.sk-dpad-hub {
  grid-column: 2;
  grid-row: 2;
  border-radius: 0.35rem;
  border: 2px solid rgba(226, 177, 90, 0.4);
  background:
    radial-gradient(circle at 50% 40%, rgba(90, 68, 42, 0.9), rgba(22, 16, 12, 0.96) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 160, 0.1);
  pointer-events: none;
}
.sk-dpad-btn.is-on {
  background: linear-gradient(180deg, #f0c36a, #8a5a22) !important;
  border-color: rgba(255, 236, 190, 0.85) !important;
}
.sk-dpad-btn.is-on::after {
  filter: brightness(0.35);
}
.sk-dock-slim {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
}
.sk-dock-slim > * {
  background: var(--sk-panel);
  border: 1px solid var(--sk-line-soft);
  border-radius: 1rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  max-height: none;
  min-width: 0;
}
.sk-dock-slim > .sk-dock-main {
  overflow: hidden;
}
.sk-dock-slim > .sk-party-slim {
  overflow: visible;
  width: max-content;
  max-width: none;
}
.sk-dock-main {
  display: grid;
  gap: 0.45rem;
}
.sk-skills {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: stretch;
}
.sk-skills-atk {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.6rem, 1fr));
  gap: 0.3rem;
}
.sk-skills-heal {
  display: grid;
  grid-template-columns: repeat(2, minmax(4.4rem, 5rem));
  gap: 0.3rem;
  padding-left: 0.4rem;
  border-left: 1px solid rgba(120, 190, 140, 0.4);
  align-content: start;
}
.sk-skill-slot {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 0.08rem 0.25rem;
  text-align: left;
  min-height: 3.55rem;
  padding: 0.32rem 0.42rem 0.55rem;
  border-radius: 0.85rem !important;
  border: 1px solid var(--sk-line-soft);
  background: rgba(24, 18, 14, 0.92);
  color: #f3eadc !important;
  box-shadow: none !important;
  overflow: hidden;
}
.sk-skill-slot em {
  grid-column: 1;
  grid-row: 1;
  font-style: normal;
  color: var(--sk-gold);
  font-size: 0.72rem;
  font-weight: 700;
}
.sk-skill-art {
  grid-column: 2;
  grid-row: 1;
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.28);
  color: #e2b15a;
  box-shadow: inset 0 0 0 1px rgba(255, 220, 160, 0.12);
  font-style: normal;
  overflow: hidden;
  flex-shrink: 0;
}
.sk-skill-art svg,
.sk-skill-art-fall svg {
  width: 1rem;
  height: 1rem;
  display: block;
}
.sk-skill-art-fall {
  display: grid;
  place-items: center;
}
.sk-skill-art-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}
.sk-skill-art.has-img .sk-skill-art-fall {
  display: none;
}
.sk-skill-art:not(.has-img) .sk-skill-art-img {
  display: none;
}
.sk-skill-art.sk-elem-fire { color: #f08a58; }
.sk-skill-art.sk-elem-ice { color: #7ec8ea; }
.sk-skill-art.sk-elem-thunder { color: #ecd05a; }
.sk-skill-art.sk-elem-wind { color: #86d086; }
.sk-skill-art.sk-elem-earth { color: #d0a060; }
.sk-skill-art.sk-elem-light { color: #f3e6b0; }
.sk-skill-art.sk-elem-dark { color: #b888d8; }
.sk-skill-art.sk-elem-physical { color: #e0b070; }
.sk-skill-art.sk-elem-none { color: #e2b15a; }
.sk-skill-art.sk-elem-heal { color: #7ed08a; }
.sk-skill-slot span {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.78rem;
  line-height: 1.2;
  color: #f3eadc;
  align-self: end;
}
.sk-skill-mp {
  grid-column: 1 / -1;
  grid-row: 3;
  color: #9ec0ea;
  font-size: 0.68rem;
  font-weight: 700;
}
.sk-skill-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #c6a15a;
}
.sk-elem-fire .sk-skill-band { background: #e07040; }
.sk-elem-ice .sk-skill-band { background: #6eb8e0; }
.sk-elem-thunder .sk-skill-band { background: #e0c24a; }
.sk-elem-wind .sk-skill-band { background: #78c478; }
.sk-elem-earth .sk-skill-band { background: #c09050; }
.sk-elem-light .sk-skill-band { background: #f0e2a0; }
.sk-elem-dark .sk-skill-band { background: #a070c0; }
.sk-elem-physical .sk-skill-band { background: #d0a060; }
.sk-elem-none .sk-skill-band { background: #c6a15a; }
.sk-elem-heal .sk-skill-band { background: #6cbc78; }
.sk-skill-heal {
  border-color: rgba(120, 190, 140, 0.5);
  background: rgba(18, 30, 20, 0.94);
}
.sk-skill-slot:disabled {
  opacity: 0.42;
}
@media (max-width: 900px) and (min-height: 521px) {
  .sk-skills {
    grid-template-columns: 1fr;
  }
  .sk-skills-heal {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(120, 190, 140, 0.35);
    padding-top: 0.35rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.sk-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.sk-quick button,
.sk-cta {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}
.sk-quick button small,
.sk-cta small {
  opacity: 0.72;
  margin-left: 0.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sk-quick button.is-on {
  border-color: rgba(226, 177, 90, 0.75);
  background: rgba(80, 56, 22, 0.92);
  color: #fff6e4;
  box-shadow: inset 0 0 0 1px rgba(226, 177, 90, 0.35);
}
.sk-cta {
  background: linear-gradient(180deg, #f0c36a, #b07830);
  color: #1a120c;
  border: none;
  font-weight: 700;
}
.sk-cta small {
  opacity: 0.78;
  color: #3a2614;
}
.sk-party-slim {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  display: grid;
  gap: 0.35rem;
  box-sizing: border-box;
}
.sk-mate {
  display: grid;
  grid-template-columns: 42px 10em;
  gap: 0.4rem;
  align-items: center;
  padding: 0.25rem;
  border-radius: 0.75rem;
}
.sk-mate img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
}
.sk-mate-body {
  width: 10em;
  display: grid;
  gap: 0.08rem;
  align-content: center;
}
.sk-mate-lv {
  color: var(--sk-muted, #cbbba6);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.sk-mate-vital {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.3rem;
  align-items: baseline;
  width: 10em;
}
.sk-mate-vital i {
  grid-row: 1 / span 2;
  font-style: normal;
  color: var(--sk-gold);
  font-size: 0.72rem;
  font-weight: 700;
}
.sk-mate-vital b,
.sk-mate-hp {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sk-ink, #f3eadc);
}
.sk-mate-vital .sk-bar {
  grid-column: 2;
  margin: 0.1rem 0 0;
}
.sk-mate.is-down {
  opacity: 0.62;
  filter: grayscale(0.55);
}
.sk-mate.is-down .sk-mate-lv {
  color: #d7b08a;
}
.sk-mate.is-low {
  background: rgba(180, 48, 36, 0.18);
}
.sk-mate.is-low .sk-mate-hp {
  color: #f0c2b4;
}
.sk-dialog.sk-ui-tactics {
  width: min(460px, 100%);
}
.sk-dialog.sk-ui-run-party {
  width: min(520px, 100%);
}
.sk-run-mate-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.4rem;
  max-height: min(58vh, 420px);
  overflow: auto;
}
.sk-run-mate {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.45rem 0.65rem;
  align-items: start;
  padding: 0.55rem;
  border: 1px solid var(--sk-line-soft);
  border-radius: 0.9rem;
  background: rgba(18, 14, 12, 0.96);
}
.sk-run-mate img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: pixelated;
}
.sk-run-mate-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.sk-run-mate-copy strong {
  font-size: 1rem;
}
.sk-run-mate-copy > span {
  color: var(--sk-muted);
  font-size: 0.78rem;
}
.sk-run-mate .sk-mate-vital {
  width: 100%;
  margin-top: 0.18rem;
}
.sk-run-mate-acts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.sk-run-mate.is-down {
  opacity: 0.7;
  filter: grayscale(0.45);
}
.sk-run-mate.is-low {
  background: rgba(180, 48, 36, 0.18);
}
.sk-tactic-list {
  display: grid;
  gap: 0.4rem;
  margin: 0.45rem 0 0.2rem;
}
.sk-tactic-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 0.85rem !important;
  border: 1px solid var(--sk-line-soft) !important;
  background: rgba(18, 14, 12, 0.96) !important;
  color: var(--sk-ink) !important;
  box-shadow: none !important;
  text-align: left;
}
.sk-tactic-row img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: pixelated;
}
.sk-tactic-row span {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.sk-tactic-row small {
  color: var(--sk-muted);
  font-size: 0.78rem;
}
.sk-tactic-row em {
  font-style: normal;
  font-weight: 700;
  color: #f0c36a;
  font-size: 0.82rem;
  white-space: nowrap;
}
.sk-tactic-row.is-hunt {
  border-color: rgba(226, 177, 90, 0.75) !important;
}
.sk-tactic-row.is-hunt em {
  color: #ffe08a;
}
.sk-hud-sheet {
  pointer-events: auto;
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: rgba(6, 4, 4, 0.55);
}
.sk-hud-sheet-card {
  width: min(420px, 92vw);
  background: var(--sk-panel-strong);
  border: 1px solid var(--sk-line);
  border-radius: 1.2rem;
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}
.sk-hud-sheet-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}
.sk-hud-sheet-card h2 {
  margin: 0;
  font-size: 1.15rem;
}
.sk-hud-sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.sk-hud-sheet-grid button {
  text-align: left;
  border-radius: 0.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--sk-line-soft);
  background: rgba(28, 22, 18, 0.95);
  color: #f3eadc;
  box-shadow: none;
}
.sk-hud-sheet-grid button small {
  color: #cbbba6;
  margin-left: 0.25rem;
}
.sk-hud-sheet-grid button.is-on {
  border-color: var(--sk-gold);
  color: #fff6e4;
  background: rgba(60, 42, 18, 0.96);
  box-shadow: inset 0 0 0 1px rgba(226, 177, 90, 0.35);
}

.sk-ui-money {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
}
.sk-ui-money b { color: var(--sk-gold); }
.sk-shop-grid,
.sk-inv-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sk-ui-shop {
  width: min(520px, 100%);
  max-height: min(78vh, 640px);
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
  min-height: 0;
}
.sk-shop-head {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: start;
  margin-bottom: 0;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--sk-line-soft);
  flex: none;
}
.sk-shop-keeper {
  width: 88px;
  height: 88px;
  object-fit: contain;
  image-rendering: pixelated;
  background: rgba(10, 8, 7, 0.55);
  border: 1px solid var(--sk-line-soft);
  border-radius: 0.85rem;
}
.sk-shop-head-copy h2 {
  margin: 0 0 0.25rem;
}
.sk-shop-head-copy .sk-ui-money {
  margin: 0 0 0.25rem;
}
.sk-shop-line,
.sk-shop-head-copy .sk-note {
  margin: 0;
  color: var(--sk-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}
.sk-shop-exit {
  align-self: start;
  white-space: nowrap;
}
.sk-shop-shelf {
  display: grid;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.15rem;
}
.sk-shop-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-radius: 0.75rem;
  border: 1px solid var(--sk-line-soft);
  background: rgba(22, 17, 14, 0.92);
  color: inherit;
  box-shadow: none;
}
.sk-shop-row:hover,
.sk-shop-row:focus-visible,
.sk-shop-row.is-on {
  border-color: var(--sk-gold);
  background: rgba(40, 30, 18, 0.96);
}
.sk-shop-buy {
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem 0.15rem 0.15rem;
  border-top: 1px solid var(--sk-line-soft);
  flex: none;
}
.sk-shop-buy-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
}
.sk-shop-buy-item b {
  display: block;
  font-size: 0.98rem;
  line-height: 1.25;
}
.sk-shop-buy-item small {
  display: block;
  color: var(--sk-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.sk-shop-qty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.sk-shop-qty input[type="number"] {
  width: 4.2rem;
  min-height: 2.4rem;
  padding: 0.25rem 0.4rem;
  border-radius: 0.55rem;
  border: 1px solid var(--sk-line-soft);
  background: rgba(12, 10, 8, 0.92);
  color: var(--sk-ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.sk-shop-qty .sk-ghost {
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0.2rem 0.55rem;
}
.sk-shop-buy-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}
.sk-shop-buy-act [data-choice="buy-go"] {
  min-height: 2.6rem;
  padding: 0.35rem 0.95rem;
}
.sk-shop-info {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.sk-shop-info b {
  font-size: 0.95rem;
  line-height: 1.25;
}
.sk-shop-info small {
  color: var(--sk-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sk-shop-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18rem;
  color: var(--sk-gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sk-shop-price i {
  font-style: normal;
  font-size: 0.78rem;
  opacity: 0.85;
}
.sk-shop-foot {
  margin-top: 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--sk-line-soft);
  flex: none;
}
@media (max-width: 560px) {
  .sk-shop-buy-act {
    flex-direction: column;
    align-items: stretch;
  }
  .sk-shop-buy-act .sk-shop-price {
    justify-content: flex-end;
  }
  .sk-shop-qty {
    justify-content: space-between;
  }
  .sk-shop-qty input[type="number"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 3.5rem;
  }
  .sk-shop-head {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .sk-shop-keeper {
    width: 72px;
    height: 72px;
  }
  .sk-shop-exit {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}
.sk-ui-inv {
  width: min(420px, 100%);
  max-height: min(78vh, 640px);
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
  min-height: 0;
}
.sk-ui-warehouse {
  width: min(720px, 100%);
}
.sk-dialog.sk-ui-warehouse {
  width: min(720px, 100%);
}
.sk-inv-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  flex: none;
  min-height: 0;
}
.sk-inv-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.sk-inv-pane h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--sk-gold);
  flex: none;
}
.sk-inv-pane h3 small {
  margin-left: 0.25rem;
  color: #d9cbb8;
  font-size: 0.78rem;
}
.sk-inv-pane .sk-inv-slots {
  flex: none;
  max-height: min(36vh, 280px);
  grid-auto-rows: max-content;
  align-content: start;
}
.sk-bank-forms {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.45rem;
}
.sk-bank-field {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
  color: #d9cbb8;
  font-size: 0.82rem;
  font-weight: 700;
}
.sk-bank-field input {
  width: 100%;
  font: inherit;
  font-weight: 700;
  color: #f3eadc;
  background: #1b1612;
  border: 1px solid #5c4632;
  border-radius: 0.45rem;
  padding: 0.35rem 0.45rem;
}
@media (max-width: 700px) {
  .sk-inv-split {
    grid-template-columns: 1fr;
  }
}
.sk-inv-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0;
  flex: none;
}
.sk-inv-head h2 {
  margin: 0;
}
.sk-inv-head h2 small {
  margin-left: 0.35rem;
  color: var(--sk-gold);
  font-size: 0.82rem;
}
.sk-inv-head .sk-note {
  margin: 0.25rem 0 0;
}
.sk-inv-toolbar {
  margin: 0;
  flex: none;
}
.sk-inv-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  flex: none;
  width: 100%;
  max-height: min(42vh, 320px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.45rem;
  border: 1px solid var(--sk-line-soft);
  border-radius: 0.85rem;
  background: rgba(10, 8, 7, 0.55);
  box-sizing: border-box;
}
.sk-inv-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 0.2rem;
  border-radius: 0.55rem;
  border: 1px solid #4a3a28;
  background:
    linear-gradient(180deg, rgba(48, 36, 24, 0.95), rgba(22, 16, 12, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 220, 150, 0.08);
  color: inherit;
}
.sk-inv-slot.is-empty {
  background: rgba(18, 14, 12, 0.72);
  border-style: dashed;
  border-color: rgba(90, 70, 48, 0.55);
  box-shadow: none;
}
.sk-inv-slot.is-on,
.sk-inv-slot:hover {
  border-color: var(--sk-gold);
  box-shadow:
    inset 0 0 0 1px rgba(255, 220, 150, 0.18),
    0 0 0 1px rgba(226, 165, 74, 0.35);
}
.sk-inv-slot .sk-icon-wrap {
  width: 78%;
  height: 78%;
}
.sk-inv-slot .sk-icon {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  image-rendering: pixelated;
}
.sk-inv-detail .sk-icon-wrap {
  width: 3rem;
  height: 3rem;
}
.sk-inv-count {
  position: absolute;
  right: 0.18rem;
  bottom: 0.1rem;
  min-width: 1.1rem;
  padding: 0 0.18rem;
  border-radius: 0.3rem;
  background: rgba(8, 6, 5, 0.82);
  color: #ffe2a0;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.sk-inv-detail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  margin-top: 0;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--sk-line-soft);
  border-radius: 0.85rem;
  background: rgba(22, 17, 14, 0.92);
  flex: none;
}
.sk-inv-detail.is-empty {
  display: block;
  color: var(--sk-muted);
  font-size: 0.84rem;
}
.sk-inv-detail-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.sk-inv-detail-copy strong {
  font-size: 0.95rem;
}
.sk-inv-detail-copy span {
  color: var(--sk-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}
.sk-inv-detail-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.sk-inv-bank {
  margin-top: 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--sk-line-soft);
  flex: none;
}
.sk-inv-bank-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
  margin-bottom: 0.25rem;
}
.sk-inv-bank-head h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--sk-gold);
}
@media (max-width: 560px) {
  .sk-inv-slots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.sk-party-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}
.sk-party-top {
  flex: 0 0 auto;
}
.sk-party-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}
.sk-party-head h2 {
  margin: 0;
}
.sk-party-slot {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.12rem;
  margin: 0;
  padding: 0.55rem 0.35rem 0.45rem;
  border-radius: 0.95rem;
  border: 1px solid var(--sk-line-soft);
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 177, 90, 0.14), transparent 55%),
    rgba(16, 12, 10, 0.96);
  color: var(--sk-ink);
  box-shadow: none;
  cursor: pointer;
  text-align: center;
}
.sk-party-slot img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
}
.sk-party-slot strong {
  font-size: 0.82rem;
  line-height: 1.2;
}
.sk-party-slot small {
  color: var(--sk-muted);
  font-size: 0.74rem;
}
.sk-party-slot-num {
  position: absolute;
  top: 0.35rem;
  left: 0.45rem;
  color: var(--sk-gold);
  font-size: 0.72rem;
  font-weight: 700;
}
.sk-party-slot.is-empty {
  min-height: 7.2rem;
  place-content: center;
  color: var(--sk-muted);
  border-style: dashed;
  cursor: default;
}
.sk-party-slot-empty {
  font-size: 0.85rem;
  font-weight: 700;
}
.sk-party-slot.is-on,
.sk-camp-cell.is-on {
  border-color: var(--sk-gold);
  box-shadow: 0 0 0 1px rgba(226, 177, 90, 0.35);
}
.sk-party-slot.is-locked,
.sk-camp-cell.is-locked {
  border-color: rgba(226, 177, 90, 0.85);
}
.sk-party-slot .sk-lock-mark {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  margin: 0;
}
.sk-camp-cell {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.35rem;
  align-items: center;
  margin: 0;
  padding: 0.35rem 0.4rem;
  border-radius: 0.75rem;
  border: 1px solid var(--sk-line-soft);
  background: rgba(16, 12, 10, 0.94);
  color: var(--sk-ink);
  box-shadow: none;
  text-align: left;
  cursor: pointer;
}
.sk-camp-cell img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  image-rendering: pixelated;
}
.sk-camp-cell span {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}
.sk-camp-cell b {
  font-size: 0.82rem;
  line-height: 1.2;
}
.sk-camp-cell small {
  color: var(--sk-muted);
  font-size: 0.72rem;
}
.sk-party-detail {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.55rem 0.65rem;
  border-radius: 0.95rem;
  border: 1px solid var(--sk-line);
  background:
    radial-gradient(circle at 12% 0%, rgba(226, 177, 90, 0.12), transparent 45%),
    rgba(14, 11, 10, 0.96);
}
.sk-party-detail.is-empty {
  display: block;
  color: var(--sk-muted);
}
.sk-party-detail img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
}
.sk-party-detail-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.sk-party-detail-main {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.sk-party-detail-main span,
.sk-party-detail-copy > span {
  color: var(--sk-muted);
  font-size: 0.8rem;
}
.sk-party-detail-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.25rem;
  margin: 0.25rem 0 0.05rem;
}
.sk-party-detail-stats div {
  padding: 0.22rem 0.35rem;
}
.sk-party-detail-stats span {
  font-size: 0.68rem;
}
.sk-party-detail-stats b {
  font-size: 0.86rem;
}
@media (max-width: 640px) {
  .sk-party-detail-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.sk-status-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0 0 0.55rem;
}
.sk-status-slot {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0.45rem 0.3rem 0.4rem;
  border-radius: 0.85rem;
  border: 1px solid var(--sk-line-soft);
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 177, 90, 0.12), transparent 55%),
    rgba(16, 12, 10, 0.96);
  color: var(--sk-ink);
  box-shadow: none;
  text-align: center;
  cursor: pointer;
}
.sk-status-slot img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: pixelated;
}
.sk-status-slot strong {
  font-size: 0.78rem;
  line-height: 1.15;
}
.sk-status-slot small {
  color: var(--sk-muted);
  font-size: 0.7rem;
}
.sk-status-slot.is-on {
  border-color: var(--sk-gold);
  box-shadow: 0 0 0 1px rgba(226, 177, 90, 0.35);
}
.sk-status-slot.is-empty {
  min-height: 5.8rem;
  place-content: center;
  color: var(--sk-muted);
  border-style: dashed;
  cursor: default;
}
.sk-dialog.sk-sheet.sk-ui-status {
  width: min(640px, 100%);
}
.sk-ui-status .sk-sheet-head img {
  width: 88px;
  height: 88px;
}
.sk-status-body {
  min-width: 0;
}
@media (max-width: 720px) {
  .sk-status-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.sk-party-camp {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-height: 0;
}
.sk-party-camp-head {
  flex: 0 0 auto;
}
.sk-ui-party .sk-subhead {
  margin: 0.1rem 0 0.2rem;
}
@media (max-width: 720px) {
  .sk-party-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.sk-ally-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}
.sk-lock-btn {
  width: 2.2rem;
  min-width: 2.2rem;
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
}
.sk-lock-btn.is-on {
  background: #5c3d16;
  color: #f0c36a;
  border-color: #f0c36a;
}
.sk-lock-ico,
.sk-lock-mark {
  display: inline-block;
  width: 0.72rem;
  height: 0.9rem;
  position: relative;
  vertical-align: -0.08em;
  margin-left: 0.28rem;
}
.sk-lock-ico::before,
.sk-lock-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 0.42rem;
  height: 0.38rem;
  margin-left: -0.21rem;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 0.28rem 0.28rem 0 0;
  box-sizing: border-box;
}
.sk-lock-btn:not(.is-on) .sk-lock-ico::before {
  border-color: #c6b39a;
  left: calc(50% + 0.08rem);
}
.sk-lock-ico::after,
.sk-lock-mark::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.52rem;
  border-radius: 0.14rem;
  background: currentColor;
}
.sk-lock-btn .sk-lock-ico {
  margin: 0;
  color: #f3eadc;
}
.sk-lock-btn.is-on .sk-lock-ico {
  color: #f0c36a;
}
.sk-lock-mark {
  color: #f0c36a;
}
.sk-breed-ally b .sk-lock-ico {
  margin-left: 0.35rem;
  color: #f0c36a;
}

.sk-ui-skills .sk-kicker {
  margin: 0.15rem 0 0.2rem;
}
.sk-set-slot-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
  flex: 0 0 auto;
}
.sk-set-heal-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 7.5rem));
  gap: 0.3rem;
  flex: 0 0 auto;
}
.sk-set-bench-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 0.3rem;
  flex: 1 1 auto;
  min-height: 7rem;
  max-height: none;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  align-content: start;
  scrollbar-gutter: stable;
}
.sk-set-cell {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.08rem 0.4rem;
  align-content: start;
  align-items: start;
  margin: 0;
  min-height: 3.4rem;
  padding: 0.55rem 0.4rem 0.4rem;
  border-radius: 0.75rem !important;
  border: 1px solid var(--sk-line-soft) !important;
  background: rgba(20, 16, 13, 0.96) !important;
  color: var(--sk-ink) !important;
  box-shadow: none !important;
  text-align: left;
  cursor: pointer;
}
.sk-set-cell .sk-set-key {
  position: absolute;
  top: 0.28rem;
  right: 0.4rem;
  color: var(--sk-gold);
  font-style: normal;
  font-weight: 700;
  font-size: 0.72rem;
}
.sk-set-cell .sk-skill-art {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.1rem;
  border-radius: 0.4rem;
}
.sk-set-cell .sk-skill-art svg {
  width: 1.2rem;
  height: 1.2rem;
}
.sk-set-cell strong {
  grid-column: 2;
  display: block;
  padding-right: 1rem;
  font-size: 0.8rem;
  line-height: 1.2;
  font-family: "Zen Maru Gothic", sans-serif;
}
.sk-set-cell b {
  grid-column: 2;
  display: block;
  color: #9ec0ea;
  font-size: 0.72rem;
  font-weight: 700;
}
.sk-set-cell.sk-set-empty {
  color: var(--sk-muted) !important;
  border-style: dashed !important;
}
.sk-set-cell.sk-set-heal {
  border-color: rgba(120, 190, 140, 0.45) !important;
}
.sk-set-cell.is-on {
  border-color: var(--sk-gold) !important;
  box-shadow: 0 0 0 1px rgba(226, 177, 90, 0.35) !important;
}
.sk-set-cell.is-target {
  border-color: rgba(226, 177, 90, 0.7) !important;
  background: rgba(60, 42, 18, 0.9) !important;
}
.sk-set-cell.is-dragging {
  opacity: 0.45;
}
.sk-set-cell.is-drop,
.sk-set-bench-row.is-drop {
  border-color: #f0c36a !important;
  box-shadow: 0 0 0 1px rgba(240, 195, 106, 0.45) !important;
}
.sk-set-cell[data-drag-skill] {
  cursor: grab;
  touch-action: none;
}
.sk-set-cell[data-drag-skill]:active {
  cursor: grabbing;
}
.sk-inv-slot[data-drag-inv],
.sk-party-slot[data-drag-ally],
.sk-camp-cell[data-drag-ally] {
  touch-action: none;
  cursor: grab;
}
.sk-inv-slot[data-drag-inv]:active,
.sk-party-slot[data-drag-ally]:active,
.sk-camp-cell[data-drag-ally]:active {
  cursor: grabbing;
}
.sk-inv-slot.is-dragging,
.sk-party-slot.is-dragging,
.sk-camp-cell.is-dragging,
.sk-set-cell.is-dragging {
  opacity: 0.45;
  pointer-events: none;
}
.sk-inv-slots.is-drop,
.sk-party-slot.is-drop,
.sk-camp-list.is-drop {
  border-color: #f0c36a !important;
  box-shadow: 0 0 0 1px rgba(240, 195, 106, 0.45) !important;
}
.sk-set-detail {
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0.55rem 0.65rem;
  border-radius: 0.95rem;
  border: 1px solid var(--sk-line);
  background:
    radial-gradient(circle at 12% 0%, rgba(226, 177, 90, 0.12), transparent 45%),
    rgba(14, 11, 10, 0.96);
  box-sizing: border-box;
  scrollbar-width: none;
}
.sk-set-detail::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.sk-set-detail.is-empty {
  color: var(--sk-muted);
}
.sk-set-detail-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.sk-set-detail-copy b {
  color: #9ec0ea;
  font-size: 0.8rem;
}
.sk-set-detail-copy span {
  color: var(--sk-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}
.sk-set-detail-acts {
  min-height: 2rem;
}
@media (max-width: 720px) {
  .sk-set-slot-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sk-dex-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  padding: 0.35rem 0 0.15rem;
}
.sk-dex-gallery {
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)) !important;
}
.sk-dex-face {
  min-height: 7.2rem;
  border-radius: 0.9rem;
}
.sk-dex-stage {
  padding: 1rem !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 177, 90, 0.14), transparent 42%),
    rgba(12, 9, 8, 0.72);
}
.sk-dex-hero {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.8rem;
}
.sk-dex-hero img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
}
.sk-dex-rank {
  margin: 0;
  color: var(--sk-gold);
  font-weight: 700;
}
.sk-dex-trait {
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--sk-line-soft);
}
.sk-dex-trait strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--sk-gold);
}

.sk-atlas-card {
  border: 1px solid var(--sk-line);
  border-radius: 1.2rem;
  background: var(--sk-panel-strong);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  padding: 0.9rem;
}
.sk-atlas-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  list-style: none;
  margin: 0.65rem 0 0.8rem;
  padding: 0;
  color: var(--sk-muted);
  font-size: 0.84rem;
}
.sk-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  margin-right: 0.3rem;
  vertical-align: -0.05rem;
}
.sk-dot-self { background: #fff; }
.sk-dot-down { background: #e2b15a; }
.sk-dot-up { background: #7ec8e8; }
.sk-dot-item { background: #d7e28a; }
.sk-dot-enemy { background: #e06050; }
.sk-dot-ally { background: #8fe0ef; }

.sk-breed-rules {
  margin: 0 0 0.7rem;
  border: 1px solid var(--sk-line-soft);
  border-radius: 0.85rem;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.03);
}
.sk-breed-rules summary {
  cursor: pointer;
  color: var(--sk-gold);
  font-weight: 700;
}
.sk-breed-rite {
  align-items: stretch;
}
.sk-breed-egg {
  width: 72px;
  height: 72px;
  margin: 0.6rem auto;
  border-radius: 50% 50% 48% 48%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 240, 210, 0.9), rgba(226, 177, 90, 0.35) 45%, rgba(80, 50, 20, 0.65));
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.25), 0 0 24px rgba(226, 177, 90, 0.25);
}
.sk-breed-egg.is-glow {
  animation: sk-hub-bob 2.4s ease-in-out infinite;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.25), 0 0 28px rgba(226, 177, 90, 0.45);
}
.sk-breed-slot,
.sk-breed-child {
  border-radius: 1.1rem;
  border: 1px solid var(--sk-line);
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 177, 90, 0.16), transparent 48%),
    rgba(14, 11, 10, 0.9);
}
.sk-breed-go {
  background: linear-gradient(180deg, #f0c36a, #b07830) !important;
  color: #1a120c !important;
  border: none !important;
  font-weight: 700;
  min-width: 8rem;
}

.sk-hub-figure {
  width: min(58vh, 520px);
  height: min(62vh, 580px);
}
.sk-hub-star {
  height: 100%;
  transform-origin: bottom center;
  filter:
    drop-shadow(0 18px 16px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 18px rgba(226, 177, 90, 0.22));
}
.sk-hub-figure::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 3%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.28), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.sk-hub-dock {
  gap: 0.85rem;
  padding: 0.75rem 0.9rem 0.95rem;
  background:
    linear-gradient(180deg, rgba(12, 9, 8, 0.2), rgba(12, 9, 8, 0.82)),
    url("assets/hub-dock.jpg") center / cover no-repeat;
  border-top: 1px solid var(--sk-line);
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.35);
}
.sk-dive-main {
  min-height: 3.2rem;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 1px rgba(255, 220, 150, 0.25), 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 32px rgba(226, 177, 90, 0.28);
  animation: sk-cta-pulse 2.8s ease-in-out infinite;
}
@keyframes sk-cta-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}
.sk-warp-stone.is-on {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px #f0d08a, 0 8px 18px rgba(0, 0, 0, 0.35);
}
.sk-dialog.sk-hub-sheet,
.sk-dialog.sk-sheet,
.sk-dialog.sk-set {
  border: 1px solid var(--sk-line);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5);
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 177, 90, 0.1), transparent 40%),
    var(--sk-panel-strong);
}
.sk-keyhint {
  opacity: 0.72;
  font-size: 0.78rem;
}

@media (max-width: 900px) and (min-height: 521px) {
  .sk-dock-slim {
    grid-template-columns: 1fr;
  }
  .sk-party-slim {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sk-dex-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* Phone / short landscape play — PC (taller) layouts stay untouched */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 1100px) {
  .sk-hud {
    padding: 0.3rem 0.4rem 0.35rem;
  }

  .sk-top {
    margin-right: 0;
    gap: 0.35rem;
    align-items: flex-start;
    display: block;
  }

  .sk-plaque-hero {
    display: inline-flex;
    max-width: min(52vw, 280px);
  }

  .sk-top-right {
    position: absolute;
    top: 0.3rem;
    right: 108px;
    z-index: 3;
    gap: 0.25rem;
    pointer-events: auto;
  }

  .sk-hud .sk-plaque-hero {
    padding: 0.22rem 0.55rem 0.28rem 0.22rem;
    gap: 0.4rem;
    border-radius: 0.75rem;
  }

  .sk-portrait {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border-width: 1px;
  }

  .sk-vitals {
    min-width: 0;
  }

  .sk-floor {
    font-size: 0.72rem;
    margin-bottom: 0.05rem;
  }

  .sk-vitals label {
    grid-template-columns: 1.55rem minmax(0, 1fr);
    column-gap: 0.22rem;
    font-size: 0.7rem;
  }

  .sk-vitals label i {
    font-size: 0.62rem;
  }

  .sk-vitals label b {
    font-size: 0.7rem;
  }

  .sk-bar {
    height: 7px;
    margin: 0.06rem 0 0.1rem;
  }

  .sk-gold {
    padding: 0.22rem 0.5rem;
    font-size: 0.78rem;
  }

  .sk-gold img {
    width: 18px;
    height: 18px;
  }

  .sk-hud-menu-btn {
    padding: 0.22rem 0.65rem;
    font-size: 0.75rem;
  }

  .sk-radar {
    top: 0.3rem;
    right: 0.35rem;
    gap: 0.18rem;
  }

  #mmap {
    display: block;
    width: 96px;
    height: 74px;
    border-width: 1px;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  }

  .sk-radar button {
    padding: 0.12rem 0.42rem;
    font-size: 0.62rem;
  }

  .sk-atlas {
    padding: 0.28rem;
    overflow: hidden;
    align-items: stretch;
    justify-items: stretch;
  }

  .sk-atlas-card {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    display: grid;
    grid-template-columns: auto max-content;
    grid-template-rows: minmax(0, 1fr) auto;
    justify-content: center;
    column-gap: 0.65rem;
    row-gap: 0.3rem;
    padding: 0.4rem 0.55rem;
    overflow: hidden;
    box-sizing: border-box;
  }

  #fullmap {
    grid-column: 1;
    grid-row: 1 / -1;
    width: auto;
    height: 100%;
    max-width: min(72vw, 100%);
    max-height: 100%;
    border: 1px solid rgba(198, 161, 90, 0.42);
    background: #0a0807;
    border-radius: 8px;
    justify-self: end;
    align-self: stretch;
  }

  .sk-atlas-legend {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.2rem;
    margin: 0;
    align-self: center;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  #map-close {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;
    align-self: end;
    min-height: 1.9rem;
    padding: 0.2rem 0.7rem;
    font-size: 0.76rem;
  }

  .sk-aim {
    top: 4.2rem;
    padding: 0.22rem 0.65rem;
    font-size: 0.75rem;
  }

  .sk-dock-slim {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.5rem;
    background: transparent;
    border: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0 0.2rem 0.55rem;
    pointer-events: none;
  }

  .sk-dock-slim > .sk-party-slim,
  .sk-dock-slim > .sk-dock-main {
    display: none;
  }

  .sk-dock-slim {
    justify-content: flex-end;
  }

  .sk-dock-slim > .sk-dpad {
    display: none !important;
  }

  .sk-dock-slim > .sk-touch-right {
    background: transparent;
    border: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0;
    min-width: 0;
    flex: 0 0 auto;
  }

  .sk-dpad {
    --sk-dpad-arm: 2.55rem;
    --sk-dpad-hub: 2.35rem;
    display: none;
    grid-template-columns: var(--sk-dpad-arm) var(--sk-dpad-hub) var(--sk-dpad-arm);
    grid-template-rows: var(--sk-dpad-arm) var(--sk-dpad-hub) var(--sk-dpad-arm);
    width: calc(var(--sk-dpad-arm) * 2 + var(--sk-dpad-hub));
    height: calc(var(--sk-dpad-arm) * 2 + var(--sk-dpad-hub));
    place-items: stretch;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
  }

  .sk-touch-right {
    /* Maple M–like: large main, roomy skill fan, utils above */
    --sk-touch-main-size: 5.15rem;
    --sk-touch-skill-size: 2.95rem;
    --sk-touch-orbit: 6.95rem;
    --sk-touch-arc-start: 166deg;
    --sk-touch-arc-step: 32deg;
    --sk-touch-main-right: 3.35rem;
    --sk-touch-main-bottom: 0.55rem;
    display: block;
    position: relative;
    width: 14.8rem;
    height: 13.6rem;
    pointer-events: auto;
    overflow: visible;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
  }

  .sk-touch-right button,
  .sk-dpad-btn {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
  }

  .sk-touch-main {
    touch-action: manipulation;
    position: absolute;
    right: var(--sk-touch-main-right);
    bottom: var(--sk-touch-main-bottom);
    z-index: 3;
    width: var(--sk-touch-main-size);
    height: var(--sk-touch-main-size);
    margin: 0;
    border-radius: 50% !important;
    border: 2px solid rgba(226, 177, 90, 0.75) !important;
    background: radial-gradient(circle at 35% 30%, #f0c36a, #8a5a22 70%) !important;
    color: #1a120c !important;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.42) !important;
  }

  .sk-touch-swap {
    position: absolute;
    right: 0.2rem;
    bottom: calc(var(--sk-touch-main-bottom) + (var(--sk-touch-main-size) - 2.45rem) / 2);
    z-index: 3;
    width: 2.45rem;
    height: 2.45rem;
    margin: 0;
    padding: 0;
    border-radius: 50% !important;
    border: 1px solid rgba(198, 161, 90, 0.55) !important;
    background: rgba(20, 16, 14, 0.55) !important;
    color: #f0d08a !important;
    font-weight: 800;
    font-size: 0.72rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28) !important;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .sk-touch-skills {
    position: absolute;
    right: var(--sk-touch-main-right);
    bottom: var(--sk-touch-main-bottom);
    z-index: 2;
    width: var(--sk-touch-main-size);
    height: var(--sk-touch-main-size);
    pointer-events: none;
  }

  .sk-touch-skill {
    --i: 0;
    --angle: calc(var(--sk-touch-arc-start) + (var(--i) * var(--sk-touch-arc-step)));
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--sk-touch-skill-size);
    height: var(--sk-touch-skill-size);
    margin: 0;
    padding: 0.2rem;
    border-radius: 0.9rem !important;
    border: 1px solid rgba(198, 161, 90, 0.42) !important;
    background: rgba(18, 14, 12, 0.62) !important;
    color: #f3eadc !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.32) !important;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    pointer-events: auto;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--sk-touch-orbit)) rotate(calc(-1 * var(--angle)));
  }

  .sk-touch-skill .sk-skill-art-touch {
    width: 100%;
    height: 100%;
    border-radius: 0.7rem;
    background: rgba(0, 0, 0, 0.22);
  }

  .sk-touch-skill .sk-skill-art-touch svg {
    width: 68%;
    height: 68%;
  }

  .sk-touch-skill .sk-skill-art-img {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
  }

  .sk-touch-skill:disabled {
    opacity: 0.4;
  }

  .sk-touch-utils {
    position: absolute;
    right: 0.15rem;
    top: -0.55rem;
    left: auto;
    bottom: auto;
    z-index: 3;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.3rem;
    max-width: 11rem;
  }

  .sk-touch-utils button {
    margin: 0;
    min-width: 2.7rem;
    min-height: 2.45rem;
    padding: 0.32rem 0.48rem;
    border-radius: 0.7rem !important;
    border: 1px solid rgba(198, 161, 90, 0.4) !important;
    background: rgba(18, 14, 12, 0.55) !important;
    color: #f3eadc !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    font-size: 0.74rem;
    font-weight: 700;
  }

  .sk-touch-utils .sk-touch-bag {
    width: 3rem;
    min-width: 3rem;
    height: 3rem;
    min-height: 3rem;
    padding: 0;
    overflow: hidden;
    border-radius: 0.85rem !important;
    border: 1px solid rgba(226, 177, 90, 0.55) !important;
    background:
      radial-gradient(circle at 50% 30%, rgba(226, 177, 90, 0.18), transparent 55%),
      rgba(18, 14, 12, 0.62) !important;
    box-shadow:
      0 0 0 1px rgba(42, 28, 16, 0.85),
      0 6px 14px rgba(0, 0, 0, 0.35) !important;
    display: grid;
    place-items: center;
  }

  .sk-touch-bag-ico {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0;
    transform: scale(1.18);
    image-rendering: auto;
  }

  .sk-touch-utils button.is-on {
    border-color: rgba(226, 177, 90, 0.8) !important;
    background: rgba(80, 56, 22, 0.78) !important;
  }

  .sk-touch-utils .sk-cta {
    background: linear-gradient(180deg, #f0c36a, #b07830) !important;
    color: #1a120c !important;
    border: none !important;
  }

  .sk-hud-sheet-grid button.is-on {
    border-color: rgba(226, 177, 90, 0.85);
    background: rgba(80, 56, 22, 0.88);
  }

  .sk-hud-sheet-card {
    width: min(560px, 94vw);
    max-height: min(88vh, 360px);
    overflow: auto;
  }

  .sk-hud-sheet-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .sk-hud-sheet-grid button {
    padding: 0.45rem 0.5rem;
    font-size: 0.78rem;
  }

  /* Hub: landscape phone */
  .sk-camp-home {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    padding: 0.28rem 0.45rem 0.35rem;
    gap: 0.22rem;
    overflow: hidden;
  }

  .sk-hub-top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.25rem 0.45rem;
    padding: 0.28rem 0.45rem;
  }

  .sk-hub-brand {
    grid-column: auto;
  }

  .sk-hub-brand h1 {
    font-size: 1.05rem;
  }

  .sk-hub-brand p {
    display: none;
  }

  .sk-hub-chip {
    min-width: 3.4rem;
    padding: 0.12rem 0.35rem;
  }

  .sk-hub-chip span {
    font-size: 0.54rem;
  }

  .sk-hub-chip strong {
    font-size: 0.7rem;
  }

  .sk-hub-stage {
    grid-template-columns: minmax(2rem, 2.45rem) minmax(0, 1fr);
    gap: 0.28rem;
    min-height: 0;
    overflow: hidden;
    align-items: stretch;
  }

  .sk-hub-rail {
    display: grid;
    grid-template-rows: repeat(6, minmax(0, 1fr));
    justify-content: stretch;
    align-content: stretch;
    justify-items: center;
    gap: 0.08rem;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .sk-hub-rail button {
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 0.55rem;
    border-width: 1.5px;
    box-shadow:
      inset 0 1px 0 rgba(255, 226, 170, 0.18),
      0 4px 10px rgba(0, 0, 0, 0.28);
  }

  .sk-hub-rail-ico {
    transform: scale(1.12);
  }

  .sk-hub-spotlight {
    min-height: 0;
    overflow: hidden;
    grid-template-rows: minmax(0, 1fr) auto auto;
    align-content: stretch;
  }

  .sk-hub-turn {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.35rem;
  }

  .sk-hub-figure {
    width: min(22vw, 140px);
    height: min(34vh, 120px);
    margin-bottom: 0;
  }

  .sk-hub-identity {
    width: min(28rem, 88%);
    height: fit-content;
    min-height: 0;
    align-self: center;
    margin-top: 0;
    padding: 0.28rem 0.55rem 0.32rem;
  }

  .sk-hub-job,
  .sk-hub-level {
    margin: 0;
    line-height: 1.15;
  }

  .sk-hub-identity h2 {
    margin: 0.05rem 0;
    font-size: 1.05rem;
    line-height: 1.15;
  }

  .sk-hub-blurb {
    display: none;
  }

  .sk-hub-identity-acts {
    margin-top: 0.25rem;
  }

  .sk-hub-identity-acts button {
    min-height: 1.85rem;
    padding: 0.2rem 0.65rem;
    font-size: 0.72rem;
  }

  .sk-hub-faces {
    width: min(36rem, 100%);
    margin-top: 0.15rem;
    padding: 0.2rem;
  }

  .sk-hub-face {
    width: 2.2rem;
    height: 2.2rem;
  }

  .sk-hub-dock {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.3rem;
    align-items: center;
    padding: 0.35rem 0.5rem;
    min-height: 0;
    max-height: 30vh;
    overflow: auto;
  }

  .sk-hub-dock .sk-dive-main {
    width: auto;
    order: 0;
    min-height: 2.3rem;
    font-size: 0.88rem;
    padding: 0.35rem 0.9rem;
  }

  .sk-warp-stones {
    grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr));
    gap: 0.22rem;
  }

  .sk-warp-more .sk-warp-stones {
    max-height: 16vh;
    overflow: auto;
  }

  .sk-dialog.sk-sheet,
  .sk-dialog.sk-hub-sheet,
  .sk-dialog.sk-ui-status,
  .sk-dialog.sk-ui-party,
  .sk-dialog.sk-ui-run-party,
  .sk-dialog.sk-ui-inv,
  .sk-dialog.sk-ui-warehouse {
    width: min(92vw, 720px);
    max-height: min(94dvh, 100%);
    overflow: auto;
  }

  .sk-dialog.sk-set,
  .sk-dialog.sk-ui-skills {
    width: min(96vw, 820px);
    height: min(94dvh, 100%);
    max-height: min(94dvh, 100%);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.95fr);
    grid-template-rows: auto auto auto auto auto auto minmax(0, 1fr);
    gap: 0.18rem 0.5rem;
    padding: 0.4rem 0.5rem 0.45rem;
    align-content: stretch;
  }

  .sk-ui-skills > .sk-party-head {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0;
  }

  .sk-ui-skills .sk-party-head h2 {
    font-size: 0.95rem;
  }

  .sk-ui-skills .sk-party-head .sk-ghost {
    min-height: 1.9rem;
    padding: 0.16rem 0.55rem;
    font-size: 0.78rem;
  }

  .sk-ui-skills > p.sk-kicker:nth-of-type(1) {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0.04rem 0 0.06rem;
    font-size: 0.72rem;
  }

  .sk-ui-skills > .sk-set-slot-row {
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.2rem;
  }

  .sk-ui-skills > p.sk-kicker:nth-of-type(2) {
    grid-column: 1 / -1;
    grid-row: 4;
    margin: 0.04rem 0 0.06rem;
    font-size: 0.72rem;
  }

  .sk-ui-skills > .sk-set-heal-row {
    grid-column: 1 / -1;
    grid-row: 5;
    grid-template-columns: repeat(2, minmax(0, 6.5rem));
    gap: 0.2rem;
  }

  .sk-ui-skills > p.sk-kicker:nth-of-type(3) {
    grid-column: 1;
    grid-row: 6;
    margin: 0.04rem 0 0.06rem;
    font-size: 0.72rem;
  }

  .sk-ui-skills > .sk-set-bench-row {
    grid-column: 1;
    grid-row: 7;
    flex: none;
    min-height: 0;
    max-height: none;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 0.2rem;
  }

  .sk-ui-skills > .sk-set-detail {
    grid-column: 2;
    grid-row: 6 / 8;
    align-self: stretch;
    min-height: 0;
    max-height: none;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.35rem 0.45rem;
  }

  .sk-ui-skills .sk-set-cell {
    min-height: 2.6rem;
    padding: 0.35rem 0.28rem 0.28rem;
    gap: 0.05rem 0.28rem;
  }

  .sk-ui-skills .sk-set-cell .sk-skill-art {
    width: 1.35rem;
    height: 1.35rem;
  }

  .sk-ui-skills .sk-set-cell strong {
    font-size: 0.68rem;
  }

  .sk-ui-skills .sk-set-cell b {
    font-size: 0.62rem;
  }

  .sk-ui-skills .sk-set-detail-copy strong {
    font-size: 0.88rem;
  }

  .sk-ui-skills .sk-set-detail-copy b {
    font-size: 0.72rem;
  }

  .sk-ui-skills .sk-set-detail-copy span {
    font-size: 0.72rem;
    line-height: 1.35;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  .sk-ui-skills .sk-set-detail-acts {
    min-height: 0;
    margin-top: 0.25rem;
  }

  .sk-ui-skills .sk-set-detail-acts button {
    min-height: 1.75rem;
    padding: 0.12rem 0.5rem;
    font-size: 0.74rem;
  }

  .sk-dialog.sk-ui-shop {
    width: min(92vw, 560px);
    max-height: min(94dvh, 100%);
    overflow: hidden;
    gap: 0.35rem;
    padding: 0.45rem 0.55rem 0.5rem;
  }

  .sk-ui-shop .sk-shop-head {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 0.4rem 0.5rem;
    align-items: center;
    padding-bottom: 0.4rem;
  }

  .sk-ui-shop .sk-shop-keeper {
    width: 48px;
    height: 48px;
    border-radius: 0.6rem;
  }

  .sk-ui-shop .sk-shop-head-copy h2 {
    font-size: 0.98rem;
    margin: 0 0 0.1rem;
  }

  .sk-ui-shop .sk-shop-head-copy .sk-ui-money,
  .sk-ui-shop .sk-shop-line,
  .sk-ui-shop .sk-shop-head-copy .sk-note {
    font-size: 0.74rem;
    line-height: 1.3;
  }

  .sk-ui-shop .sk-shop-exit {
    min-height: 2.05rem;
    padding: 0.2rem 0.65rem;
    font-size: 0.8rem;
  }

  .sk-ui-shop .sk-shop-row {
    gap: 0.4rem;
    padding: 0.32rem 0.4rem;
  }

  .sk-ui-shop .sk-shop-info b {
    font-size: 0.86rem;
  }

  .sk-ui-shop .sk-shop-info small {
    font-size: 0.7rem;
    -webkit-line-clamp: 1;
  }

  .sk-ui-shop .sk-shop-foot {
    padding-top: 0.4rem;
  }

  .sk-ui-shop .sk-shop-foot button {
    min-height: 2.1rem;
    font-size: 0.84rem;
  }

  .sk-dialog.sk-ui-bag,
  .sk-dialog.sk-ui-warehouse {
    max-height: min(94dvh, 100%);
    overflow: hidden;
    gap: 0.28rem;
    padding: 0.4rem 0.5rem 0.45rem;
  }

  .sk-dialog.sk-ui-bag {
    width: min(70vw, 380px);
  }

  .sk-dialog.sk-ui-warehouse {
    width: min(96vw, 760px);
    height: min(94dvh, 100%);
  }

  .sk-ui-inv .sk-inv-head {
    gap: 0.4rem;
    align-items: center;
  }

  .sk-ui-inv .sk-inv-head h2 {
    font-size: 0.98rem;
  }

  .sk-ui-inv .sk-inv-head .sk-note {
    margin: 0.1rem 0 0;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .sk-ui-inv .sk-inv-head .sk-ghost {
    min-height: 2.05rem;
    padding: 0.2rem 0.65rem;
    font-size: 0.8rem;
  }

  .sk-ui-inv .sk-inv-toolbar .sk-ghost {
    min-height: 2rem;
    padding: 0.18rem 0.55rem;
    font-size: 0.78rem;
  }

  .sk-ui-bag .sk-inv-slots {
    gap: 0.22rem;
    padding: 0.28rem;
    max-height: min(46dvh, 190px);
  }

  .sk-ui-warehouse .sk-inv-split {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    overflow: hidden;
  }

  .sk-ui-warehouse .sk-inv-pane {
    min-height: 0;
    overflow: hidden;
  }

  .sk-ui-warehouse .sk-inv-pane h3 {
    margin: 0 0 0.15rem;
    font-size: 0.74rem;
  }

  .sk-ui-warehouse .sk-inv-pane .sk-inv-slots {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    gap: 0.16rem;
    padding: 0.22rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: max-content;
    align-content: start;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sk-ui-warehouse .sk-inv-pane .sk-inv-slot {
    min-height: auto;
  }

  .sk-ui-inv .sk-inv-detail {
    gap: 0.4rem;
    padding: 0.28rem 0.4rem;
  }

  .sk-ui-warehouse .sk-inv-detail.is-empty {
    padding: 0.22rem 0.4rem;
    font-size: 0.72rem;
  }

  .sk-ui-inv .sk-inv-detail .sk-icon-wrap {
    width: 2.35rem;
    height: 2.35rem;
  }

  .sk-ui-inv .sk-inv-detail-copy strong {
    font-size: 0.86rem;
  }

  .sk-ui-inv .sk-inv-detail-copy span {
    font-size: 0.7rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .sk-ui-inv .sk-inv-detail-acts {
    margin-top: 0.18rem;
    gap: 0.25rem;
  }

  .sk-ui-inv .sk-inv-detail-acts button {
    min-height: 1.95rem;
    padding: 0.18rem 0.55rem;
    font-size: 0.78rem;
  }

  .sk-ui-warehouse .sk-inv-bank {
    padding-top: 0.18rem;
    flex: none;
  }

  .sk-ui-warehouse .sk-inv-bank > .sk-note {
    display: none;
  }

  .sk-ui-warehouse .sk-inv-bank-head {
    margin-bottom: 0.04rem;
  }

  .sk-ui-warehouse .sk-inv-bank-head h3 {
    font-size: 0.76rem;
  }

  .sk-ui-warehouse .sk-inv-bank-head .sk-ui-money {
    font-size: 0.68rem;
  }

  .sk-ui-warehouse .sk-bank-forms {
    margin-top: 0.08rem;
    gap: 0.2rem 0.35rem;
    grid-template-columns: 1fr 1fr;
  }

  .sk-ui-warehouse .sk-bank-field {
    grid-template-columns: 2.6rem minmax(0, 1fr) auto;
    gap: 0.18rem;
    font-size: 0.66rem;
  }

  .sk-ui-warehouse .sk-bank-field input {
    padding: 0.12rem 0.24rem;
    min-width: 0;
  }

  .sk-ui-warehouse .sk-bank-field button {
    min-height: 1.6rem;
    padding: 0.08rem 0.36rem;
    font-size: 0.68rem;
  }

  /* Party: left slots / right camp — left+detail fit, camp scrolls */
  .sk-dialog.sk-hub-party {
    width: min(94vw, 860px);
    height: min(94dvh, 100%);
    max-height: min(94dvh, 100%);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(248px, 1fr) minmax(0, 1.2fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.28rem 0.5rem;
    align-content: stretch;
    padding: 0.4rem 0.5rem 0.45rem;
  }

  .sk-hub-party .sk-party-top {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .sk-hub-party .sk-party-head {
    margin-bottom: 0;
    gap: 0.35rem;
  }

  .sk-hub-party .sk-party-head h2 {
    font-size: 0.95rem;
  }

  .sk-hub-party .sk-party-head .sk-ghost {
    min-height: 1.9rem;
    padding: 0.16rem 0.55rem;
    font-size: 0.78rem;
  }

  .sk-hub-party .sk-party-slots {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.28rem;
    align-content: stretch;
  }

  .sk-hub-party .sk-party-slot {
    min-height: 0;
    height: 100%;
    padding: 0.2rem 0.18rem 0.16rem;
    gap: 0.04rem;
    border-radius: 0.7rem;
    align-content: center;
    grid-template-rows: minmax(0, 1fr) auto auto;
  }

  .sk-hub-party .sk-party-slot img {
    width: auto;
    height: auto;
    max-width: min(80px, 88%);
    max-height: 100%;
    min-width: 56px;
    min-height: 56px;
    aspect-ratio: 1 / 1;
    align-self: center;
    justify-self: center;
    object-fit: contain;
  }

  .sk-hub-party .sk-party-slot strong {
    font-size: 0.72rem;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sk-hub-party .sk-party-slot small {
    font-size: 0.64rem;
  }

  .sk-hub-party .sk-party-slot-num {
    top: 0.22rem;
    left: 0.28rem;
    font-size: 0.64rem;
  }

  .sk-hub-party .sk-party-slot.is-empty {
    min-height: 0;
  }

  .sk-hub-party .sk-party-camp {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
  }

  .sk-hub-party .sk-party-camp-head .sk-subhead {
    font-size: 0.78rem;
    margin: 0;
  }

  .sk-hub-party .sk-camp-tools {
    gap: 0.18rem;
  }

  .sk-hub-party .sk-camp-filter {
    font-size: 0.64rem;
  }

  .sk-hub-party .sk-camp-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sk-hub-party .sk-party-detail {
    grid-column: 1 / -1;
    grid-row: 2;
    flex: none;
    max-height: none;
    overflow: hidden;
    padding: 0.28rem 0.4rem;
    gap: 0.35rem 0.45rem;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
  }

  .sk-hub-party .sk-party-detail img {
    width: 40px;
    height: 40px;
  }

  .sk-hub-party .sk-party-detail-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "main main"
      "stats acts";
    gap: 0.14rem 0.45rem;
    align-items: center;
  }

  .sk-hub-party .sk-party-detail-main {
    grid-area: main;
    gap: 0.06rem;
  }

  .sk-hub-party .sk-party-detail-main strong {
    font-size: 0.86rem;
    line-height: 1.15;
  }

  .sk-hub-party .sk-party-detail-main span {
    font-size: 0.68rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sk-hub-party .sk-party-detail-stats {
    grid-area: stats;
    margin: 0;
    gap: 0.16rem;
  }

  .sk-hub-party .sk-party-detail-stats div {
    padding: 0.12rem 0.22rem;
  }

  .sk-hub-party .sk-party-detail-stats span {
    font-size: 0.58rem;
  }

  .sk-hub-party .sk-party-detail-stats b {
    font-size: 0.74rem;
  }

  .sk-hub-party .sk-ally-acts {
    grid-area: acts;
    margin: 0;
    flex-wrap: nowrap;
    gap: 0.2rem;
  }

  .sk-hub-party .sk-ally-acts button {
    min-height: 1.7rem;
    padding: 0.1rem 0.42rem;
    font-size: 0.7rem;
  }

  .sk-hub-party .sk-lock-btn {
    width: 1.7rem;
    min-height: 1.7rem;
  }

  #breed .sk-dex-panel,
  #dex .sk-dex-panel {
    width: min(96vw, 980px);
    height: min(94dvh, 100%);
    max-height: min(94dvh, 100%);
  }

  /* Breed: board left, roster right (landscape phone) */
  #breed-body {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.15fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "rules rules"
      "suggest suggest"
      "board roster"
      "next roster";
    gap: 0.28rem 0.55rem;
    overflow: hidden;
    min-height: 0;
  }

  #breed-body:has(.sk-breed-inherit) {
    display: flex;
    flex-direction: column;
  }

  .sk-breed-rules {
    grid-area: rules;
    margin: 0;
  }

  .sk-breed-suggest {
    grid-area: suggest;
    margin: 0;
  }

  .sk-breed-board {
    grid-area: board;
    align-self: stretch;
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sk-breed-plus,
  .sk-breed-arrow {
    display: none;
  }

  .sk-breed-child {
    grid-column: 1 / -1;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.3rem 0.4rem;
    padding: 0.35rem 0.4rem;
  }

  .sk-breed-slot,
  .sk-breed-child {
    padding: 0.3rem 0.35rem;
  }

  .sk-breed-slot.is-empty,
  .sk-breed-child.is-empty {
    min-height: 0;
    padding: 0.28rem 0.35rem;
  }

  .sk-breed-egg {
    width: 28px;
    height: 28px;
    margin: 0.05rem auto;
  }

  .sk-breed-seat img,
  .sk-breed-child > img {
    width: 36px;
    height: 36px;
  }

  .sk-breed-kicker {
    font-size: 0.62rem;
    margin: 0 0 0.1rem;
  }

  .sk-breed-child h3 {
    font-size: 0.92rem;
  }

  .sk-breed-child p {
    margin: 0.05rem 0;
    font-size: 0.78rem;
  }

  .sk-breed-go {
    min-height: 2.1rem;
    margin-top: 0.2rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.82rem;
  }

  .sk-breed-next {
    grid-area: next;
    margin: 0;
  }

  .sk-breed-suggest [data-breed="swap"] {
    min-height: 2.1rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.82rem;
  }

  .sk-breed-roster {
    grid-area: roster;
    margin: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .sk-breed-roster h3 {
    margin: 0 0 0.25rem;
  }

  .sk-breed-picks {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: 1fr;
  }

  .sk-breed-ally {
    min-height: 2.6rem;
    padding: 0.22rem 0.35rem;
  }

  .sk-breed-inherit {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    gap: 0.35rem;
  }

  .sk-breed-inherit-head {
    flex: none;
    padding: 0.4rem 0.5rem;
    gap: 0.45rem;
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .sk-breed-inherit-head img {
    width: 52px;
    height: 52px;
  }

  .sk-breed-inherit-list {
    flex: 1 1 auto;
    min-height: 0;
  }

  .sk-breed-inherit-list .sk-breed-skills {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sk-breed-inherit-acts {
    flex: none;
    position: static;
    padding-top: 0;
    background: none;
  }

  #dex-body {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sk-run-mate-list {
    max-height: min(52vh, 240px);
  }

  .sk-modal {
    background: rgba(8, 6, 8, 0.78);
    padding: 0.45rem 0.55rem;
  }

  .sk-dialog.sk-level {
    width: min(94vw, 640px);
    max-height: calc(100dvh - 0.7rem);
    overflow: hidden;
    gap: 0.18rem;
    padding: 0.4rem 0.55rem 0.45rem;
  }

  .sk-level-head {
    gap: 0.45rem;
  }

  .sk-level img {
    width: 40px;
    height: 40px;
  }

  .sk-level h2 {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .sk-level .sk-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .sk-level .sk-unlock {
    margin: 0;
    padding: 0.22rem 0.4rem;
  }

  .sk-level .sk-unlock li + li {
    margin-top: 0.2rem;
  }

  .sk-level .sk-unlock b {
    font-size: 0.82rem;
  }

  .sk-level .sk-unlock span {
    display: none;
  }

  .sk-level .sk-soon {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .sk-level .sk-grow {
    gap: 0.05rem 0.65rem;
    font-size: 0.78rem;
  }

  .sk-level .sk-grow li {
    grid-template-columns: 2.7em 2em 0.85em 2em 2.1em;
    gap: 0.08rem;
  }

  .sk-level [data-choice] {
    min-height: 2.05rem;
    margin-top: 0.05rem;
    padding: 0.22rem 0.85rem;
    font-size: 0.86rem;
  }

  .sk-dialog.sk-ui-recruit {
    width: min(560px, 96vw);
    max-height: min(92vh, 300px);
    overflow: auto;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem 0.6rem;
  }

  .sk-recruit-hero {
    gap: 0.55rem;
  }

  .sk-dialog.sk-ui-recruit img {
    width: 56px;
    height: 56px;
  }

  .sk-dialog.sk-ui-recruit h2 {
    font-size: 0.98rem;
  }

  .sk-dialog.sk-ui-recruit p {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .sk-dialog.sk-ui-recruit .sk-recruit-actions button,
  .sk-dialog.sk-ui-recruit .sk-recruit-swaps button {
    min-height: 2.35rem;
    font-size: 0.86rem;
  }

  .sk-recruit-swaps {
    max-height: 7.2rem;
    overflow: auto;
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  /* Hub home — portrait phone */
  #hub {
    align-items: stretch;
    justify-content: stretch;
  }

  .sk-camp-home {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100dvh;
    padding: 0.45rem 0.5rem 0.55rem;
    gap: 0.35rem;
    overflow: hidden;
  }

  .sk-hub-top {
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.45rem;
    padding: 0.4rem 0.55rem;
    align-items: start;
  }

  .sk-hub-brand {
    grid-column: 1 / -1;
  }

  .sk-hub-brand h1 {
    font-size: 1.25rem;
  }

  .sk-hub-brand p {
    font-size: 0.72rem;
  }

  .sk-hub-status {
    justify-content: flex-start;
    gap: 0.28rem;
  }

  .sk-hub-chip {
    min-width: 0;
    flex: 1 1 4.2rem;
    padding: 0.22rem 0.4rem;
  }

  .sk-hub-chip span {
    font-size: 0.58rem;
  }

  .sk-hub-chip strong {
    font-size: 0.78rem;
  }

  .sk-hub-stage {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 0;
    overflow: hidden;
  }

  .sk-hub-rail {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.28rem;
    order: 2;
  }

  .sk-hub-rail button {
    width: 3rem;
    min-width: 3rem;
    min-height: 3rem;
    padding: 0;
    border-radius: 0.75rem;
  }

  .sk-hub-spotlight {
    order: 1;
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "figure"
      "identity"
      "faces";
    gap: 0.25rem;
    justify-items: center;
    overflow: hidden;
  }

  .sk-hub-turn {
    display: none;
  }

  .sk-hub-figure {
    width: min(48vw, 180px);
    height: min(26vh, 200px);
    margin-bottom: 0;
    place-items: end center;
  }

  .sk-hub-identity {
    width: min(22rem, 96%);
    height: fit-content;
    min-height: 0;
    align-self: center;
    margin-top: 0;
    padding: 0.32rem 0.55rem 0.35rem;
  }

  .sk-hub-job,
  .sk-hub-level {
    margin: 0;
    line-height: 1.15;
  }

  .sk-hub-identity h2 {
    margin: 0.05rem 0;
    font-size: 1.15rem;
    line-height: 1.15;
  }

  .sk-hub-blurb {
    display: none;
  }

  .sk-hub-identity-acts {
    gap: 0.3rem;
    margin-top: 0.28rem;
  }

  .sk-hub-identity-acts button {
    min-height: 2rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
  }

  .sk-hub-faces {
    width: 100%;
    margin-top: 0.15rem;
    padding: 0.25rem;
    border-radius: 999px;
    justify-content: flex-start;
  }

  .sk-hub-face {
    width: 2.55rem;
    height: 2.55rem;
  }

  .sk-hub-dock {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.5rem 0.55rem;
    max-height: 34vh;
    overflow: auto;
  }

  .sk-hub-dock .sk-dive-main {
    width: 100%;
    order: -1;
    min-height: 2.8rem;
    font-size: 1rem;
  }

  .sk-warp-stones {
    grid-template-columns: repeat(auto-fill, minmax(3.2rem, 1fr));
    gap: 0.28rem;
  }

  .sk-warp-more .sk-warp-stones {
    max-height: 16vh;
    overflow: auto;
  }

  .sk-dock-slim {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.4rem;
    background: transparent;
    border: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0 0.25rem 0.65rem;
    pointer-events: none;
    max-height: none;
    overflow: visible;
  }

  .sk-dock-slim > .sk-party-slim,
  .sk-dock-slim > .sk-dock-main {
    display: none;
  }

  .sk-dock-slim {
    justify-content: flex-end;
  }

  .sk-dock-slim > .sk-dpad {
    display: none !important;
  }

  .sk-dock-slim > .sk-touch-right {
    background: transparent;
    border: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0;
    min-width: 0;
    flex: 0 0 auto;
  }

  .sk-dpad {
    --sk-dpad-arm: 2.35rem;
    --sk-dpad-hub: 2.15rem;
    display: none;
    grid-template-columns: var(--sk-dpad-arm) var(--sk-dpad-hub) var(--sk-dpad-arm);
    grid-template-rows: var(--sk-dpad-arm) var(--sk-dpad-hub) var(--sk-dpad-arm);
    width: calc(var(--sk-dpad-arm) * 2 + var(--sk-dpad-hub));
    height: calc(var(--sk-dpad-arm) * 2 + var(--sk-dpad-hub));
    place-items: stretch;
    pointer-events: auto;
    touch-action: none;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
  }

  .sk-touch-right {
    /* 特技扇の位置は従来どおり。待機↔ページ余白とカバン位置だけ調整 */
    --sk-touch-main-size: 4rem;
    --sk-touch-skill-size: 2.35rem;
    --sk-touch-orbit: 4.4rem;
    --sk-touch-arc-start: 155deg;
    --sk-touch-arc-step: 34deg;
    --sk-touch-main-right: 2.95rem;
    --sk-touch-main-bottom: 0.35rem;
    --sk-touch-swap-size: 2.15rem;
    display: block;
    position: relative;
    width: 9.2rem;
    height: 10.6rem;
    pointer-events: auto;
    overflow: visible;
    touch-action: manipulation;
  }

  .sk-touch-main {
    touch-action: manipulation;
    position: absolute;
    right: var(--sk-touch-main-right);
    bottom: var(--sk-touch-main-bottom);
    z-index: 3;
    width: var(--sk-touch-main-size);
    height: var(--sk-touch-main-size);
    margin: 0;
    border-radius: 50% !important;
    border: 2px solid rgba(226, 177, 90, 0.75) !important;
    background: radial-gradient(circle at 35% 30%, #f0c36a, #8a5a22 70%) !important;
    color: #1a120c !important;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
  }

  .sk-touch-swap {
    position: absolute;
    right: 0.15rem;
    bottom: calc(var(--sk-touch-main-bottom) + (var(--sk-touch-main-size) - var(--sk-touch-swap-size)) / 2);
    z-index: 4;
    width: var(--sk-touch-swap-size);
    height: var(--sk-touch-swap-size);
    margin: 0;
    padding: 0;
    border-radius: 50% !important;
    border: 1px solid rgba(198, 161, 90, 0.55) !important;
    background: rgba(20, 16, 14, 0.55) !important;
    color: #f0d08a !important;
    font-weight: 800;
    font-size: 0.68rem;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .sk-touch-skills {
    position: absolute;
    right: var(--sk-touch-main-right);
    bottom: var(--sk-touch-main-bottom);
    z-index: 2;
    width: var(--sk-touch-main-size);
    height: var(--sk-touch-main-size);
    pointer-events: none;
  }

  .sk-touch-skill {
    --i: 0;
    --angle: calc(var(--sk-touch-arc-start) + (var(--i) * var(--sk-touch-arc-step)));
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--sk-touch-skill-size);
    height: var(--sk-touch-skill-size);
    margin: 0;
    padding: 0.22rem;
    border-radius: 0.95rem !important;
    border: 1px solid rgba(198, 161, 90, 0.42) !important;
    background: rgba(18, 14, 12, 0.62) !important;
    color: #f3eadc !important;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    pointer-events: auto;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.32) !important;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--sk-touch-orbit)) rotate(calc(-1 * var(--angle)));
  }

  .sk-touch-skill .sk-skill-art-touch {
    width: 100%;
    height: 100%;
    border-radius: 0.7rem;
    background: rgba(0, 0, 0, 0.22);
  }

  .sk-touch-skill .sk-skill-art-touch svg {
    width: 68%;
    height: 68%;
  }

  .sk-touch-skill .sk-skill-art-img {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
  }

  .sk-touch-utils {
    position: absolute;
    right: 0.1rem;
    top: -2.55rem;
    left: auto;
    bottom: auto;
    z-index: 5;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 0.28rem;
    max-width: 3.2rem;
  }

  .sk-touch-utils button {
    margin: 0;
    min-width: 2.55rem;
    min-height: 2.2rem;
    padding: 0.28rem 0.4rem;
    border-radius: 0.7rem !important;
    border: 1px solid rgba(198, 161, 90, 0.4) !important;
    background: rgba(18, 14, 12, 0.55) !important;
    color: #f3eadc !important;
    font-size: 0.72rem;
    font-weight: 700;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .sk-touch-utils .sk-touch-bag {
    width: 2.7rem;
    min-width: 2.7rem;
    height: 2.7rem;
    min-height: 2.7rem;
    padding: 0;
    overflow: hidden;
    border-radius: 0.8rem !important;
    border: 1px solid rgba(226, 177, 90, 0.55) !important;
    background:
      radial-gradient(circle at 50% 30%, rgba(226, 177, 90, 0.18), transparent 55%),
      rgba(18, 14, 12, 0.62) !important;
    box-shadow:
      0 0 0 1px rgba(42, 28, 16, 0.85),
      0 6px 14px rgba(0, 0, 0, 0.35) !important;
    display: grid;
    place-items: center;
  }

  .sk-touch-bag-ico {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0;
    transform: scale(1.18);
    image-rendering: auto;
  }

  /* Play HUD top: vitals + actions left, minimap column right */
  .sk-hud {
    padding: 0.4rem 0.45rem 0.5rem;
  }

  .sk-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.28rem;
    margin-right: calc(96px + 0.7rem);
    min-width: 0;
  }

  .sk-plaque-hero {
    max-width: 100%;
    min-width: 0;
  }

  .sk-hud .sk-plaque-hero {
    display: block;
    padding: 0.32rem 0.55rem 0.36rem;
    overflow: hidden;
  }

  .sk-hud .sk-portrait {
    display: none;
  }

  .sk-hud .sk-vitals {
    min-width: 0;
    width: 100%;
  }

  .sk-hud .sk-floor {
    font-size: 0.78rem;
    margin-bottom: 0.12rem;
  }

  .sk-hud .sk-ailments {
    gap: 0.2rem;
    margin: 0.06rem 0 0.18rem;
  }

  .sk-hud .sk-ailment {
    padding: 0.12rem 0.34rem 0.12rem 0.12rem;
    font-size: 0.68rem;
  }

  .sk-hud .sk-ailment img {
    width: 0.95rem;
    height: 0.95rem;
  }

  .sk-hud .sk-vitals label {
    grid-template-columns: 2rem minmax(0, 1fr);
    column-gap: 0.25rem;
    font-size: 0.72rem;
  }

  .sk-hud .sk-vitals label i {
    font-size: 0.66rem;
  }

  .sk-hud .sk-vitals label b {
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sk-hud .sk-bar {
    height: 7px;
    margin: 0.05rem 0 0.08rem;
  }

  .sk-top-right {
    position: static;
    z-index: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    min-width: 0;
    gap: 0.3rem;
    pointer-events: auto;
  }

  .sk-gold {
    padding: 0.18rem 0.45rem;
    font-size: 0.74rem;
  }

  .sk-gold img {
    width: 16px;
    height: 16px;
  }

  .sk-hud-menu-btn {
    padding: 0.24rem 0.65rem;
    font-size: 0.74rem;
    width: auto;
    text-align: center;
  }

  .sk-radar {
    top: 0.4rem;
    right: 0.45rem;
    z-index: 3;
    width: auto;
    min-width: 0;
    padding-top: 0;
    align-items: flex-end;
    gap: 0.2rem;
  }

  #mmap {
    display: block !important;
    width: 96px;
    height: 74px;
    border-width: 1px;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  }

  .sk-radar button {
    width: 96px;
    padding: 0.2rem 0.35rem;
    font-size: 0.66rem;
    text-align: center;
  }

  .sk-modal {
    background: rgba(8, 6, 8, 0.78);
    padding: 0.7rem 0.65rem;
  }

  .sk-dialog.sk-level {
    width: min(94vw, 440px);
    max-height: calc(100dvh - 1.2rem);
    overflow: hidden;
    gap: 0.28rem;
    padding: 0.55rem 0.65rem 0.6rem;
  }

  .sk-level img {
    width: 52px;
    height: 52px;
  }

  .sk-level h2 {
    font-size: 1.02rem;
    line-height: 1.3;
  }

  .sk-level .sk-unlock {
    margin: 0;
    padding: 0.3rem 0.45rem;
  }

  .sk-level .sk-unlock b {
    font-size: 0.9rem;
  }

  .sk-level .sk-unlock span {
    display: none;
  }

  .sk-level .sk-soon {
    margin: 0;
    font-size: 0.74rem;
  }

  .sk-level .sk-grow {
    font-size: 0.84rem;
  }

  .sk-level [data-choice] {
    min-height: 2.4rem;
    width: 100%;
  }

  .sk-dialog.sk-ui-recruit {
    width: min(440px, 100%);
    max-height: min(78vh, 560px);
    gap: 0.7rem;
    padding: 0.85rem 0.8rem 0.9rem;
  }

  .sk-dialog.sk-ui-recruit img {
    width: 76px;
    height: 76px;
  }

  .sk-dialog.sk-ui-recruit h2 {
    font-size: 1.08rem;
  }

  .sk-dialog.sk-ui-recruit p {
    font-size: 0.9rem;
  }

  .sk-recruit-actions {
    grid-template-columns: 1fr;
  }

  .sk-recruit-actions:not(:has(> :nth-child(3))) {
    grid-template-columns: 1fr;
  }

  .sk-recruit-swaps {
    grid-template-columns: 1fr;
  }

  .sk-dialog.sk-ui-recruit .sk-recruit-actions button,
  .sk-dialog.sk-ui-recruit .sk-recruit-swaps button {
    min-height: 2.9rem;
    font-size: 1rem;
  }
}

/* Portrait phone overlays (landscape uses the short-height landscape block above) */
@media (max-width: 900px) and (orientation: portrait) {
  .sk-atlas {
    padding: 0.45rem;
    overflow: hidden;
    align-items: stretch;
    justify-items: stretch;
  }

  .sk-atlas-card {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.55rem;
    overflow: hidden;
    box-sizing: border-box;
  }

  #fullmap {
    flex: 0 1 auto;
    width: 100%;
    height: auto;
    max-height: min(58dvh, calc(100% - 5.2rem));
    min-height: 0;
    border: 1px solid rgba(198, 161, 90, 0.42);
    background: #0a0807;
    border-radius: 8px;
  }

  .sk-atlas-legend {
    flex: none;
    margin: 0;
    gap: 0.35rem 0.65rem;
    font-size: 0.78rem;
  }

  #map-close {
    flex: none;
    align-self: center;
    min-height: 2.2rem;
  }

  .sk-dex {
    padding: 0.45rem;
    align-items: stretch;
    justify-items: stretch;
  }

  .sk-dex-panel,
  #breed .sk-dex-panel,
  #dex .sk-dex-panel {
    width: 100%;
    max-width: 100%;
    height: min(92dvh, 100%);
    max-height: min(92dvh, 100%);
    margin: auto 0;
    overflow: hidden;
  }

  #dex-body {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  #breed-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .sk-breed-rules,
  .sk-breed-suggest,
  .sk-breed-board,
  .sk-breed-next {
    flex: none;
  }

  .sk-breed-board {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .sk-breed-plus,
  .sk-breed-arrow {
    display: none;
  }

  .sk-breed-child {
    grid-column: 1 / -1;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.35rem 0.45rem;
  }

  .sk-breed-slot.is-empty,
  .sk-breed-child.is-empty {
    min-height: 0;
    padding: 0.3rem 0.4rem;
    gap: 0.08rem;
  }

  .sk-breed-egg {
    width: 32px;
    height: 32px;
    margin: 0.08rem auto;
  }

  .sk-breed-seat img,
  .sk-breed-child > img {
    width: 40px;
    height: 40px;
  }

  .sk-breed-slot,
  .sk-breed-child {
    padding: 0.35rem 0.4rem;
  }

  .sk-breed-next {
    margin: 0.3rem 0 0;
  }

  .sk-breed-roster {
    flex: 1 1 auto;
    min-height: min(38vh, 16rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 0.45rem;
  }

  .sk-breed-roster h3 {
    flex: none;
    margin: 0.25rem 0 0.35rem;
  }

  .sk-breed-picks {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    grid-template-columns: 1fr;
  }

  .sk-breed-ally {
    min-height: 2.9rem;
    padding: 0.28rem 0.4rem;
  }

  .sk-breed-inherit {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sk-dialog.sk-ui-status,
  .sk-dialog.sk-ui-inv,
  .sk-dialog.sk-ui-warehouse,
  .sk-dialog.sk-hub-sheet,
  .sk-dialog.sk-sheet {
    width: min(560px, 100%);
    max-height: min(92dvh, 100%);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sk-dialog.sk-set,
  .sk-dialog.sk-ui-skills {
    width: min(94vw, 520px);
    height: min(88dvh, 100%);
    max-height: min(88dvh, 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.5rem 0.55rem 0.55rem;
    -webkit-overflow-scrolling: touch;
  }

  .sk-ui-skills .sk-set-slot-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sk-ui-skills .sk-set-bench-row {
    flex: 1 1 auto;
    min-height: 6.5rem;
    max-height: none;
  }

  .sk-ui-skills .sk-set-detail {
    flex: none;
    min-height: 0;
    max-height: min(28dvh, 11rem);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.4rem 0.5rem;
  }

  .sk-ui-skills .sk-set-detail-copy span {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .sk-ui-skills .sk-set-detail-acts {
    min-height: 0;
    margin-top: 0.25rem;
  }

  .sk-dialog.sk-ui-shop {
    width: min(94vw, 440px);
    max-height: min(92dvh, 100%);
    overflow: hidden;
    gap: 0.4rem;
    padding: 0.55rem 0.6rem 0.6rem;
  }

  .sk-ui-shop .sk-shop-head {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .sk-ui-shop .sk-shop-keeper {
    width: 56px;
    height: 56px;
  }

  .sk-ui-shop .sk-shop-exit {
    grid-column: 1 / -1;
    justify-self: stretch;
    min-height: 2.35rem;
  }

  .sk-ui-shop .sk-shop-info small {
    -webkit-line-clamp: 1;
  }

  .sk-dialog.sk-ui-bag,
  .sk-dialog.sk-ui-warehouse {
    width: min(94vw, 420px);
    max-height: min(92dvh, 100%);
    overflow: hidden;
    gap: 0.35rem;
    padding: 0.5rem 0.55rem 0.55rem;
  }

  .sk-dialog.sk-ui-warehouse {
    width: min(96vw, 520px);
    height: min(88dvh, 100%);
  }

  .sk-ui-bag .sk-inv-slots {
    max-height: min(42dvh, 280px);
  }

  .sk-ui-warehouse .sk-inv-split {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    overflow: hidden;
  }

  .sk-ui-warehouse .sk-inv-pane {
    min-height: 0;
    overflow: hidden;
  }

  .sk-ui-warehouse .sk-inv-pane .sk-inv-slots {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: max-content;
    align-content: start;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sk-ui-warehouse .sk-inv-pane .sk-inv-slot {
    min-height: auto;
  }

  .sk-ui-inv .sk-inv-detail-copy span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .sk-ui-warehouse .sk-inv-bank {
    flex: none;
  }

  .sk-ui-warehouse .sk-bank-field {
    grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  }

  .sk-dialog.sk-hub-party {
    width: min(560px, 100%);
    height: min(88dvh, 100%);
    max-height: min(88dvh, 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem 0.55rem 0.55rem;
  }

  .sk-hub-party .sk-party-top {
    flex: none;
    overflow: hidden;
  }

  .sk-hub-party .sk-party-slots {
    flex: none;
    gap: 0.28rem;
  }

  .sk-hub-party .sk-party-slot {
    padding: 0.3rem 0.35rem;
  }

  .sk-hub-party .sk-party-slot img {
    width: 56px;
    height: 56px;
  }

  .sk-hub-party .sk-party-detail {
    flex: none;
    order: 3;
    max-height: none;
    overflow: hidden;
    padding: 0.35rem 0.45rem;
    gap: 0.35rem;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
  }

  .sk-hub-party .sk-party-detail img {
    width: 44px;
    height: 44px;
  }

  .sk-hub-party .sk-party-detail-copy {
    display: grid;
    gap: 0.2rem;
  }

  .sk-hub-party .sk-party-detail-main {
    gap: 0.08rem;
  }

  .sk-hub-party .sk-party-detail-main strong {
    font-size: 0.9rem;
  }

  .sk-hub-party .sk-party-detail-main span {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .sk-hub-party .sk-party-detail-stats {
    margin: 0;
    gap: 0.2rem;
  }

  .sk-hub-party .sk-party-detail-stats div {
    padding: 0.16rem 0.28rem;
  }

  .sk-hub-party .sk-ally-acts {
    margin-top: 0.1rem;
  }

  .sk-hub-party .sk-ally-acts button {
    min-height: 1.9rem;
    padding: 0.14rem 0.5rem;
    font-size: 0.76rem;
  }

  .sk-hub-party .sk-party-camp {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    order: 2;
  }

  .sk-hub-party .sk-camp-list {
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sk-hub-modal-list {
    max-height: min(42dvh, 320px);
  }
}
