/* ═════════════════════════════════════════════════════════════════════
   LANDING PAGE — Ice-themed armory search
   ═════════════════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ice-50:  #f0f7ff;
  --ice-100: #dceeff;
  --ice-200: #b8dcff;
  --ice-300: #8ec5ff;
  --ice-400: #5aa5f0;
  --ice-500: #2e85e0;
  --ice-glow: rgba(140,200,255,.45);
  --ice-glow-strong: rgba(140,200,255,.7);
  --ice-border: rgba(180,220,255,.3);
  --ice-border-active: rgba(140,200,255,.65);
  --frost-bg: rgba(15,25,45,.55);
  --frost-bg-active: rgba(20,35,65,.65);
}

html, body {
  width: 100%;
  min-height: 100%;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: #fff;
  overflow-x: hidden;
}

body.landing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  background: #050810;
}

/* ── Background layers ──────────────────────────────────────────────── */

.bg-image {
  position: fixed;
  inset: 0;
  background: url('https://armeria.corelegacy.gg/img/launcher_background.png') center center / cover no-repeat;
  z-index: 0;
  transform: scale(1.02);
  animation: bgSlowZoom 30s ease-in-out infinite alternate;
}

@keyframes bgSlowZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.08); }
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, transparent 0%, rgba(5,8,16,.5) 70%, rgba(5,8,16,.9) 100%),
    linear-gradient(180deg, rgba(5,8,16,.3) 0%, transparent 30%, transparent 70%, rgba(5,8,16,.5) 100%);
}

.bg-frost-tint {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(100,160,220,.08) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Snow weather (canvas) ───────────────────────────────────────────── */

#snowCanvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Dark overlay during storm mode */
.storm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10,15,30,.25) 0%, rgba(5,10,25,.15) 100%);
  opacity: 0;
  transition: opacity 2s ease;
}

.storm-overlay.active {
  opacity: 1;
}

/* Lightning flash overlay */
.storm-flash {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(200,220,255,.6) 0%, transparent 70%);
  opacity: 0;
}

.storm-flash.flash {
  animation: lightningFlash 0.5s ease-out;
}

@keyframes lightningFlash {
  0%   { opacity: 0; }
  10%  { opacity: .8; }
  25%  { opacity: .1; }
  35%  { opacity: .6; }
  100% { opacity: 0; }
}

/* ── Content layout ──────────────────────────────────────────────────── */

.content-wrapper {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 20px;
}

/* ── Back link ──────────────────────────────────────────────────────── */

.back-link {
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(180,220,255,.7);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 8px 16px 8px 12px;
  border-radius: 10px;
  background: rgba(10,18,35,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(140,200,255,.15);
  transition: color .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}

.back-link:hover {
  color: rgba(220,240,255,1);
  border-color: rgba(140,200,255,.4);
  background: rgba(20,30,55,.6);
  box-shadow: 0 0 20px rgba(140,200,255,.2);
}

.back-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(140,200,255,.3));
  transition: transform .3s ease;
}

.back-link:hover .back-arrow {
  transform: translateX(-3px);
  filter: drop-shadow(0 0 6px rgba(140,200,255,.5));
}

/* ── Logo with glow ──────────────────────────────────────────────────── */

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 72px;
  margin-bottom: 48px;
}

.armory-logo {
  width: 520px;
  max-width: 80vw;
  max-height: 45vh;
  object-fit: contain;
  opacity: .92;
  transform-origin: top center;
  filter:
    drop-shadow(0 4px 20px rgba(0,0,0,.7))
    drop-shadow(0 0 30px rgba(140,200,255,.3))
    drop-shadow(0 0 60px rgba(140,200,255,.15));
  animation: logoGlow 4s ease-in-out infinite, flagWave 30s ease-in-out infinite;
  transition: transform .4s ease, filter .4s ease;
}

.armory-logo:hover {
  transform: scale(1.03);
  filter:
    drop-shadow(0 4px 20px rgba(0,0,0,.7))
    drop-shadow(0 0 40px rgba(140,200,255,.5))
    drop-shadow(0 0 80px rgba(140,200,255,.25));
}

@keyframes flagWave {
  0%   { transform: rotate(0deg) skewX(0deg) skewY(0deg); }
  15%  { transform: rotate(2.5deg) skewX(1.2deg) skewY(0.4deg); }
  30%  { transform: rotate(0deg) skewX(0deg) skewY(0deg); }
  50%  { transform: rotate(-2.5deg) skewX(-1.2deg) skewY(-0.4deg); }
  65%  { transform: rotate(0deg) skewX(0deg) skewY(0deg); }
  80%  { transform: rotate(1deg) skewX(0.5deg) skewY(0deg); }
  100% { transform: rotate(0deg) skewX(0deg) skewY(0deg); }
}

@keyframes logoGlow {
  0%, 100% {
    filter:
      drop-shadow(0 4px 20px rgba(0,0,0,.7))
      drop-shadow(0 0 24px rgba(140,200,255,.25))
      drop-shadow(0 0 50px rgba(140,200,255,.12));
  }
  50% {
    filter:
      drop-shadow(0 4px 20px rgba(0,0,0,.7))
      drop-shadow(0 0 36px rgba(140,200,255,.45))
      drop-shadow(0 0 72px rgba(140,200,255,.22));
  }
}

/* ── Ice search bar ──────────────────────────────────────────────────── */

.search-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.search-bar {
  position: relative;
  width: 100%;
  max-width: 580px;
  border-radius: 18px;
  background: var(--frost-bg);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--ice-border);
  box-shadow:
    0 0 40px rgba(100,170,240,.12),
    0 8px 40px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(0,0,0,.15);
  transition: border-color .35s ease, box-shadow .35s ease, background .35s ease;
  overflow: hidden;
}

.search-bar:focus-within {
  border-color: var(--ice-border-active);
  background: var(--frost-bg-active);
  box-shadow:
    0 0 60px rgba(100,170,240,.2),
    0 8px 40px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 -1px 0 rgba(0,0,0,.15);
}

/* Frost edge — animated crystalline shimmer on top border */
.search-frost-edge {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(180,230,255,.4) 20%,
    rgba(220,240,255,.8) 50%,
    rgba(180,230,255,.4) 80%,
    transparent 100%);
  opacity: .5;
  transition: opacity .35s ease;
}

.search-bar:focus-within .search-frost-edge {
  opacity: 1;
  animation: frostShimmer 2.5s ease-in-out infinite;
}

@keyframes frostShimmer {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(20px); }
}

/* Soft glow behind the bar on focus */
.search-glow {
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: radial-gradient(ellipse at center, rgba(120,190,255,.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: -1;
}

.search-bar:focus-within .search-glow { opacity: 1; }

.search-bar-inner {
  display: flex;
  align-items: center;
  padding: 16px 22px;
  position: relative;
  z-index: 1;
}

.search-icon {
  width: 24px; height: 24px;
  color: rgba(180,220,255,.5);
  flex-shrink: 0;
  margin-right: 14px;
  transition: color .3s ease, filter .3s ease;
  filter: drop-shadow(0 0 0 transparent);
}

.search-bar:focus-within .search-icon {
  color: rgba(180,220,255,.85);
  filter: drop-shadow(0 0 6px rgba(140,200,255,.5));
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: .01em;
}

.search-input::placeholder {
  color: rgba(180,220,255,.35);
  font-weight: 300;
}

.search-clear {
  width: 22px; height: 22px;
  flex-shrink: 0;
  margin-left: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(180,220,255,.4);
  opacity: 0;
  transform: scale(.8);
  transition: opacity .2s ease, transform .2s ease, color .2s ease;
}

.search-clear.visible {
  opacity: 1;
  transform: scale(1);
}

.search-clear:hover { color: rgba(220,240,255,.9); }
.search-clear svg { width: 18px; height: 18px; }

/* ── Search results dropdown ─────────────────────────────────────────── */

.search-results {
  width: 100%;
  max-width: 580px;
  margin-top: 10px;
  background: rgba(10,18,35,.92);
  border: 1px solid var(--ice-border);
  border-radius: 14px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .35s ease, opacity .25s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

.search-results.visible {
  max-height: 420px;
  opacity: 1;
  overflow-y: auto;
}

.search-results::-webkit-scrollbar { width: 6px; }
.search-results::-webkit-scrollbar-track { background: transparent; }
.search-results::-webkit-scrollbar-thumb {
  background: rgba(140,200,255,.3);
  border-radius: 3px;
}
.search-results::-webkit-scrollbar-thumb:hover { background: rgba(140,200,255,.5); }

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid rgba(180,220,255,.06);
  transition: background .2s ease, padding-left .2s ease;
  position: relative;
}

.result-item:last-child { border-bottom: none; }

.result-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background .2s ease;
}

.result-item:hover {
  background: rgba(120,190,255,.08);
  padding-left: 26px;
}

.result-item:hover::before {
  background: rgba(140,200,255,.5);
}

.result-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ice-100);
}

.result-info {
  font-size: 13px;
  color: rgba(255,255,255,.45);
}

.result-info .online-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 5px;
  vertical-align: middle;
  box-shadow: 0 0 6px rgba(74,222,128,.6);
}

.result-faction-icon {
  width: 18px;
  height: 18px;
  vertical-align: -4px;
  margin-right: 7px;
  border-radius: 3px;
  object-fit: cover;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}

.result-item.selected {
  background: rgba(120,190,255,.12);
  padding-left: 26px;
}
.result-item.selected::before {
  background: rgba(140,200,255,.7);
}

.recent-item .result-info {
  font-size: 11px;
  color: rgba(180,220,255,.35);
}

.result-empty, .result-error {
  padding: 18px 22px;
  text-align: center;
  color: rgba(255,255,255,.35);
  font-size: 14px;
}

.result-error { color: rgba(231,76,60,.6); }

/* ── Footer ──────────────────────────────────────────────────────────── */

.footer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 20px;
  margin-top: auto;
}

.footer-text {
  font-size: 12px;
  color: #d4af37;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: .03em;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* ── Buscador de bots button (next to search bar) ───────────────────── */

.bots-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 22px;
  background: linear-gradient(135deg, rgba(20,30,55,.6), rgba(10,14,20,.4));
  border: 1px solid rgba(140,200,255,.25);
  border-radius: 10px;
  color: rgba(180,220,255,.85);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease, color .2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.bots-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: filter .2s ease;
}
.bots-btn:hover {
  color: rgba(220,240,255,1);
  border-color: rgba(140,200,255,.5);
  box-shadow: 0 0 24px rgba(140,200,255,.2);
  transform: translateY(-2px);
}
.bots-btn:hover svg {
  filter: drop-shadow(0 0 6px rgba(140,200,255,.5));
}
.bots-btn:active {
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .armory-logo {
    width: 380px;
    max-height: 35vh;
  }
  .logo-container { margin-top: 80px; margin-bottom: 36px; }
  .search-bar-inner { padding: 14px 18px; }
  .search-input { font-size: 15px; }
}

@media (max-width: 480px) {
  .armory-logo {
    width: 280px;
    max-height: 28vh;
  }
  .logo-container { margin-top: 90px; margin-bottom: 28px; }
  .search-bar-inner { padding: 12px 16px; }
  .search-input { font-size: 14px; }
  .search-icon { width: 20px; height: 20px; margin-right: 10px; }
  .result-item { padding: 12px 18px; }
}

/* CHARACTER PAGE */
body.character-page-body {
  background: linear-gradient(180deg, #0a0e14, #141a28);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.character-page { width: 100%; max-width: 900px; }

.character-card {
  background: rgba(20,26,40,.85);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.character-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(135deg, rgba(20,30,55,.4), rgba(10,14,20,.2));
}

.back-link {
  color: rgba(120,190,255,.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}

.back-link:hover { color: #69b8ff; }

.character-identity { display: flex; align-items: center; gap: 16px; }
.faction-mark { font-size: 32px; color: rgba(255,255,255,.3); }

.identity-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 2px;
}

.char-title { font-size: 22px; font-weight: 700; color: #fff; line-height: 1.2; }
.char-meta { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 2px; }

.character-rating { font-size: 12px; color: rgba(255,255,255,.3); letter-spacing: .05em; }
.character-rating span { color: rgba(120,190,255,.5); margin-right: 4px; }

.character-stage {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 3D VIEWER */
.char-viewer-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  background: radial-gradient(ellipse at center 60%, rgba(20,30,55,.6) 0%, rgba(8,10,18,.95) 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
}

.char-viewer-canvas-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.char-viewer-canvas-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.char-viewer-loading {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,.5);
  font-size: 14px;
}

.char-viewer-loading .spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: #00aeff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.char-viewer-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(231,76,60,.8);
  font-size: 14px;
  padding: 20px;
}

/* EQUIPMENT PAPERDOLL */
.equip-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.equip-slot {
  position: absolute;
  width: 56px;
  pointer-events: auto;
  transition: transform .15s;
}

.equip-slot:hover { transform: scale(1.08); z-index: 20; }

.equip-slot[data-position="left-1"]  { top: 8px; left: 12px; }
.equip-slot[data-position="left-2"]  { top: calc(8px + (100% - 72px) / 7); left: 12px; }
.equip-slot[data-position="left-3"]  { top: calc(8px + 2 * (100% - 72px) / 7); left: 12px; }
.equip-slot[data-position="left-4"]  { top: calc(8px + 3 * (100% - 72px) / 7); left: 12px; }
.equip-slot[data-position="left-5"]  { top: calc(8px + 4 * (100% - 72px) / 7); left: 12px; }
.equip-slot[data-position="left-6"]  { top: calc(8px + 5 * (100% - 72px) / 7); left: 12px; }
.equip-slot[data-position="left-7"]  { top: calc(8px + 6 * (100% - 72px) / 7); left: 12px; }
.equip-slot[data-position="left-8"]  { top: calc(8px + 7 * (100% - 72px) / 7); left: 12px; }
.equip-slot[data-position="right-1"] { top: 8px; right: 12px; }
.equip-slot[data-position="right-2"] { top: calc(8px + (100% - 72px) / 7); right: 12px; }
.equip-slot[data-position="right-3"] { top: calc(8px + 2 * (100% - 72px) / 7); right: 12px; }
.equip-slot[data-position="right-4"] { top: calc(8px + 3 * (100% - 72px) / 7); right: 12px; }
.equip-slot[data-position="right-5"] { top: calc(8px + 4 * (100% - 72px) / 7); right: 12px; }
.equip-slot[data-position="right-6"] { top: calc(8px + 5 * (100% - 72px) / 7); right: 12px; }
.equip-slot[data-position="right-7"] { top: calc(8px + 6 * (100% - 72px) / 7); right: 12px; }
.equip-slot[data-position="right-8"] { top: calc(8px + 7 * (100% - 72px) / 7); right: 12px; }
.equip-slot[data-position^="bottom"] { flex-direction: row; gap: 10px; bottom: 8%; }
.equip-slot[data-position="bottom-1"] { left: calc(50% - 120px); }
.equip-slot[data-position="bottom-2"] { left: calc(50% - 32px); }
.equip-slot[data-position="bottom-3"] { left: calc(50% + 56px); }
.equip-slot[data-position^="bottom"] .equip-slot-link,
.equip-slot[data-position^="bottom"] .equip-slot-empty-icon { width: 56px; height: 56px; }
.equip-slot[data-position^="bottom"] .equip-slot-gems { flex-direction: column; gap: 2px; bottom: auto; top: 2px; right: -10px; left: auto; }

.equip-slot-link {
  display: block;
  width: 56px; height: 56px;
  border-radius: 6px;
  border: 2px solid #333;
  overflow: hidden;
  position: relative;
  transition: border-color .2s, box-shadow .2s;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  text-decoration: none;
}

.equip-slot--filled .equip-slot-link:hover { box-shadow: 0 0 10px rgba(0,174,255,.4); }

.equip-slot-icon { width: 100%; height: 100%; object-fit: cover; display: block; }

.equip-slot-ilvl {
  position: absolute;
  bottom: 1px; right: 2px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 2px #000, -1px -1px 2px #000;
  pointer-events: none;
}

.equip-slot-empty-icon {
  width: 56px; height: 56px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.equip-slot-icon-faded { width: 38px; height: 38px; opacity: .2; object-fit: cover; }

.equip-slot-gems {
  position: absolute;
  bottom: 2px; left: 2px; right: 2px;
  display: flex;
  gap: 2px;
  justify-content: center;
  pointer-events: auto;
}

.equip-gem-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  border: 1px solid;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 640px) {
  .equip-slot-link, .equip-slot-empty-icon { width: 44px; height: 44px; }
  .equip-slot-icon-faded { width: 28px; height: 28px; }
  .equip-slot[data-position="left-1"]  { top: 4px; left: 6px; }
  .equip-slot[data-position="left-2"]  { top: calc(4px + (100% - 64px) / 7); left: 6px; }
  .equip-slot[data-position="left-3"]  { top: calc(4px + 2 * (100% - 64px) / 7); left: 6px; }
  .equip-slot[data-position="left-4"]  { top: calc(4px + 3 * (100% - 64px) / 7); left: 6px; }
  .equip-slot[data-position="left-5"]  { top: calc(4px + 4 * (100% - 64px) / 7); left: 6px; }
  .equip-slot[data-position="left-6"]  { top: calc(4px + 5 * (100% - 64px) / 7); left: 6px; }
  .equip-slot[data-position="left-7"]  { top: calc(4px + 6 * (100% - 64px) / 7); left: 6px; }
  .equip-slot[data-position="left-8"]  { top: calc(4px + 7 * (100% - 64px) / 7); left: 6px; }
  .equip-slot[data-position="right-1"] { top: 4px; right: 6px; }
  .equip-slot[data-position="right-2"] { top: calc(4px + (100% - 64px) / 7); right: 6px; }
  .equip-slot[data-position="right-3"] { top: calc(4px + 2 * (100% - 64px) / 7); right: 6px; }
  .equip-slot[data-position="right-4"] { top: calc(4px + 3 * (100% - 64px) / 7); right: 6px; }
  .equip-slot[data-position="right-5"] { top: calc(4px + 4 * (100% - 64px) / 7); right: 6px; }
  .equip-slot[data-position="right-6"] { top: calc(4px + 5 * (100% - 64px) / 7); right: 6px; }
  .equip-slot[data-position="right-7"] { top: calc(4px + 6 * (100% - 64px) / 7); right: 6px; }
  .equip-slot[data-position="right-8"] { top: calc(4px + 7 * (100% - 64px) / 7); right: 6px; }
  .equip-slot[data-position^="bottom"] { bottom: 8%; }
  .equip-slot[data-position^="bottom"] .equip-slot-link,
  .equip-slot[data-position^="bottom"] .equip-slot-empty-icon { width: 48px; height: 48px; }
  .equip-slot[data-position="bottom-1"] { left: calc(50% - 90px); }
  .equip-slot[data-position="bottom-2"] { left: calc(50% - 24px); }
  .equip-slot[data-position="bottom-3"] { left: calc(50% + 42px); }
}

@media (max-width: 480px) {
  .equip-slot-link, .equip-slot-empty-icon { width: 36px; height: 36px; }
  .equip-slot-icon-faded { width: 22px; height: 22px; }
  .equip-slot[data-position="left-1"]  { top: 3px; left: 4px; }
  .equip-slot[data-position="left-2"]  { top: calc(3px + (100% - 62px) / 7); left: 4px; }
  .equip-slot[data-position="left-3"]  { top: calc(3px + 2 * (100% - 62px) / 7); left: 4px; }
  .equip-slot[data-position="left-4"]  { top: calc(3px + 3 * (100% - 62px) / 7); left: 4px; }
  .equip-slot[data-position="left-5"]  { top: calc(3px + 4 * (100% - 62px) / 7); left: 4px; }
  .equip-slot[data-position="left-6"]  { top: calc(3px + 5 * (100% - 62px) / 7); left: 4px; }
  .equip-slot[data-position="left-7"]  { top: calc(3px + 6 * (100% - 62px) / 7); left: 4px; }
  .equip-slot[data-position="left-8"]  { top: calc(3px + 7 * (100% - 62px) / 7); left: 4px; }
  .equip-slot[data-position="right-1"] { top: 3px; right: 4px; }
  .equip-slot[data-position="right-2"] { top: calc(3px + (100% - 62px) / 7); right: 4px; }
  .equip-slot[data-position="right-3"] { top: calc(3px + 2 * (100% - 62px) / 7); right: 4px; }
  .equip-slot[data-position="right-4"] { top: calc(3px + 3 * (100% - 62px) / 7); right: 4px; }
  .equip-slot[data-position="right-5"] { top: calc(3px + 4 * (100% - 62px) / 7); right: 4px; }
  .equip-slot[data-position="right-6"] { top: calc(3px + 5 * (100% - 62px) / 7); right: 4px; }
  .equip-slot[data-position="right-7"] { top: calc(3px + 6 * (100% - 62px) / 7); right: 4px; }
  .equip-slot[data-position="right-8"] { top: calc(3px + 7 * (100% - 62px) / 7); right: 4px; }
  .equip-slot[data-position^="bottom"] { bottom: 8%; }
  .equip-slot[data-position^="bottom"] .equip-slot-link,
  .equip-slot[data-position^="bottom"] .equip-slot-empty-icon { width: 40px; height: 40px; }
  .equip-slot[data-position="bottom-1"] { left: calc(50% - 76px); }
  .equip-slot[data-position="bottom-2"] { left: calc(50% - 20px); }
  .equip-slot[data-position="bottom-3"] { left: calc(50% + 36px); }
}

.character-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12px;
  color: rgba(255,255,255,.3);
}

.footer-divider { width: 1px; height: 14px; background: rgba(255,255,255,.1); }
