:root{
  --bg: #0a0f14;
  --bg2:#0d141c;
  --card:#0f1722;
  --card2:#101c29;
  --line: rgba(255,255,255,.08);
  --text:#e7eef7;
  --muted: rgba(231,238,247,.68);

  --accent:#C4B5FD;
  --accent2:#F472B6;
  --danger:#ff5a7a;
  --ok:#41f0c8;
  --warn:#FDBA74;

  --shadow: 0 10px 40px rgba(0,0,0,.35);
  --radius: 16px;

  --mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  --sidebar-w: 280px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(196,181,253,.14), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(244,114,182,.12), transparent 65%),
    radial-gradient(700px 380px at 65% 100%, rgba(253,186,116,.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

.app-shell{
  display:flex;
  min-height:100vh;
}

.sidebar{
  width:var(--sidebar-w);
  padding:18px;
  border-right:1px solid var(--line);
  background: rgba(10,15,20,.6);
  backdrop-filter: blur(10px);
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
}

.main{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 22px;
  border-bottom:1px solid var(--line);
  background: rgba(10,15,20,.35);
  backdrop-filter: blur(10px);
  position:sticky;
  top:0;
  z-index:5;
}

.content{padding:22px; max-width: 1220px;}
.footer{
  margin-top:auto;
  padding:16px 22px;
  border-top:1px solid var(--line);
  color:var(--muted);
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px 12px;
  border-radius:14px;
  color:var(--text);
  text-decoration:none;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}
.brand:hover{border-color: rgba(196,181,253,.35)}
.brand-mark svg .svg-fg{stroke: none; fill: rgba(231,238,247,.9)}
.brand-mark svg .svg-accent{stroke: rgba(253,186,116,.9); stroke-width:2.2; fill:none; stroke-linecap:round}
.brand-mark svg .svg-line{stroke: rgba(231,238,247,.8); stroke-width:2.2; fill:none; stroke-linecap:round}

.brand-top{display:block; font-weight:800; letter-spacing:.2px}
.brand-sub{display:block; font-size:12px; color:var(--muted); margin-top:1px}

.nav{margin-top:14px; display:flex; flex-direction:column; gap:6px}
.nav-link{
  padding:10px 12px;
  border-radius:12px;
  text-decoration:none;
  color:var(--text);
  display:flex;
  gap:10px;
  align-items:center;
  border:1px solid transparent;
}
.nav-link:hover{
  background: rgba(255,255,255,.04);
  border-color: var(--line);
}
.nav-link.is-active{
  background: rgba(196,181,253,.10);
  border-color: rgba(196,181,253,.35);
}
.nav-ico{width:22px; text-align:center}
.nav-sep{height:1px; background:var(--line); margin:8px 0}

.side-card{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  padding:12px;
}
.side-card-title{font-weight:700; font-size:13px; opacity:.9}
.side-char{display:flex; gap:10px; margin-top:10px; align-items:center}
.side-avatar{
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  background: rgba(253,186,116,.12);
  border:1px solid rgba(253,186,116,.25);
}
.side-name{font-weight:800}
.side-sub{margin-top:6px; display:flex; flex-wrap:wrap; gap:6px}

h1{margin:0; font-size:30px; letter-spacing:-.5px}
h2{margin:0; font-size:18px}
p{margin:0}
.muted{color:var(--muted)}
.small{font-size:12px}
.code{
  font-family:var(--mono);
  font-size:12px;
  padding:2px 6px;
  border-radius:8px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.25);
  color: rgba(231,238,247,.88);
}

.btn{
  border:none;
  cursor:pointer;
  border-radius: 14px;
  padding:10px 14px;
  font-weight:700;
  letter-spacing:.2px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition: transform .06s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
  user-select:none;
  white-space:nowrap;
}
.btn:active{transform: translateY(1px)}
.btn.is-disabled{opacity:.45; pointer-events:none}

.btn-primary{
  color:#130b1e;
  background: linear-gradient(180deg, var(--accent), rgba(196,181,253,.75));
  box-shadow: 0 10px 25px rgba(196,181,253,.18);
}
.btn-primary:hover{filter:saturate(1.05)}

.btn-ghost{
  color:var(--text);
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
}
.btn-ghost:hover{border-color: rgba(231,238,247,.22)}

.btn-danger{
  color:#1a060a;
  background: linear-gradient(180deg, rgba(255,90,122,1), rgba(255,90,122,.75));
}

.btn-row{display:flex; gap:10px; flex-wrap:wrap}

.form{display:flex; flex-direction:column; gap:12px}
.form-inline{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:10px;
}
.field{display:flex; flex-direction:column; gap:6px}
.label{font-size:12px; color:var(--muted); font-weight:700}
.help{font-size:12px; color:rgba(231,238,247,.55)}
.input, .select{
  width:100%;
  border-radius: 14px;
  padding:11px 12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
.input:focus, .select:focus{
  border-color: rgba(196,181,253,.45);
  box-shadow: 0 0 0 4px rgba(196,181,253,.10);
}
.select{appearance:none; background-image:
  linear-gradient(45deg, transparent 50%, rgba(231,238,247,.7) 50%),
  linear-gradient(135deg, rgba(231,238,247,.7) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 13px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat:no-repeat;
  padding-right:34px;
}

.card{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-link{color:inherit; text-decoration:none}
.card-link:hover{border-color: rgba(253,186,116,.35)}
.card-head{padding:16px 16px 12px}
.card-body{padding:0 16px 16px}
.card-head-row{display:flex; justify-content:space-between; gap:12px; align-items:flex-start; flex-wrap:wrap}
.cta{font-weight:800; color:rgba(253,186,116,.95)}
.divider{height:1px; background:var(--line); margin:14px 0}

.grid{display:grid; gap:14px}
.grid-2{grid-template-columns: 1fr 1fr}
.grid-3{grid-template-columns: repeat(3, 1fr)}
.span-2{grid-column: span 2}

.page-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:14px;
  flex-wrap:wrap;
}
.page-kicker{color:rgba(253,186,116,.92); font-weight:800; letter-spacing:.3px; font-size:12px}
.balance-cards{display:flex; gap:10px; flex-wrap:wrap}
.stat-card{
  border:1px solid var(--line);
  background: rgba(0,0,0,.15);
  border-radius: 16px;
  padding:12px 14px;
  min-width: 150px;
}
.stat-label{color:var(--muted); font-weight:700; font-size:12px}
.stat-val{font-weight:900; font-size:18px; margin-top:4px}

.pill{
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  padding:6px 10px;
  border-radius: 999px;
  font-size:12px;
  color:rgba(231,238,247,.85);
}
.badge{
  display:inline-flex;
  gap:6px;
  align-items:center;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}
.badge-ok{border-color: rgba(65,240,200,.35); background: rgba(65,240,200,.10)}
.badge-warn{border-color: rgba(253,186,116,.35); background: rgba(253,186,116,.12)}
.badge-time{border-color: rgba(253,186,116,.30); background: rgba(253,186,116,.08)}

.flash-wrap{padding: 0 22px}
.flash{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px 12px;
  margin:12px 0 0;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
}
.flash-dot{width:10px;height:10px;border-radius:999px;margin-top:4px;background: rgba(231,238,247,.45)}
.flash-success{border-color: rgba(196,181,253,.35); background: rgba(196,181,253,.10)}
.flash-success .flash-dot{background: var(--accent)}
.flash-error{border-color: rgba(255,90,122,.35); background: rgba(255,90,122,.10)}
.flash-error .flash-dot{background: var(--danger)}
.flash-warning{border-color: rgba(253,186,116,.35); background: rgba(253,186,116,.10)}
.flash-warning .flash-dot{background: var(--warn)}
.flash-msg{font-weight:700}

.auth-wrap{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
}
.auth-card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  padding:18px;
}
.auth-head h1{margin-top:6px}
.auth-badge{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  background: rgba(253,186,116,.12);
  border:1px solid rgba(253,186,116,.25);
}
.auth-links{margin-top:10px; font-size:13px}
.auth-links a{color:rgba(253,186,116,.95); text-decoration:none}
.auth-links a:hover{text-decoration:underline}

.hero-card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0,0,0,.18);
  padding:18px;
  box-shadow: var(--shadow);
}
.hero-kpis{display:flex; gap:10px; margin:14px 0; flex-wrap:wrap}
.kpi{
  flex:1;
  min-width: 120px;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background: rgba(255,255,255,.03);
}
.kpi-n{font-size:18px}
.kpi-t{color:var(--muted); font-weight:700; font-size:12px; margin-top:6px}

.list{margin:0; padding-left:18px; color:rgba(231,238,247,.82); display:grid; gap:6px}
.empty{
  border:1px dashed rgba(231,238,247,.20);
  background: rgba(0,0,0,.12);
  border-radius: var(--radius);
  padding:16px;
  text-align:center;
}
.empty-ico{font-size:28px}
.empty-title{font-weight:900; margin-top:6px}

.trade-items{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.trade-item{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px;
  border-radius: 16px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.14);
  min-width: 260px;
}
.trade-name{font-weight:900}
.trade-arrow{
  font-size:22px;
  color:rgba(253,186,116,.9);
  font-weight:900;
}

.item-ico{
  width:64px;
  height:64px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background-color: rgba(0,0,0,.25);
  background-repeat:no-repeat;
  image-rendering: pixelated;
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
}
.item-ico--empty{
  display:grid; place-items:center;
  color: rgba(231,238,247,.35);
  font-family: var(--mono);
}

.slots{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap:10px;
}
.slots--compact{grid-template-columns: repeat(5, minmax(0, 1fr));}

.slot, .slot-btn{
  min-width:0;
  border-radius: 16px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.14);
  padding:10px;
}
.slot-top, .slot-btn-top{
  display:flex; justify-content:space-between; gap:8px; align-items:center;
  margin-bottom:8px;
}
.slot-num, .slot-btn-num{font-family:var(--mono); font-size:12px; color:rgba(231,238,247,.7)}
.slot-main{display:flex; gap:10px; align-items:center; min-width:0}
.slot-ghost{color:rgba(231,238,247,.4); font-weight:800}
.slot-name{font-weight:900; min-width:0}

.slot-btn{
  cursor:pointer;
  text-align:left;
  display:flex;
  flex-direction:column;
  gap:8px;
  transition: transform .06s ease, border-color .15s ease, background .15s ease;
}
.slot-btn:hover{transform: translateY(-1px); border-color: rgba(253,186,116,.25)}
.slot-btn.is-empty{opacity:.55; cursor:default}
.slot-btn.is-disabled{opacity:.45; cursor:not-allowed}
.slot-btn.is-selected{border-color: rgba(196,181,253,.40); background: rgba(196,181,253,.08)}

.slot-btn-main{display:flex; gap:10px; align-items:center; min-width:0}
.slot-btn-name{
  font-weight:900;
  font-size:12px;
  line-height:1.2;
  opacity:.9;
  min-width:0;
  max-width:100%;
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow:hidden;
}

.slots--compact .slot-btn{
  padding:10px 8px;
  aspect-ratio: 1 / 1;
}
.slots--compact .slot-btn-main{
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.slots--compact .slot-btn-name{
  width:100%;
  text-align:center;
  font-size:11px;
}

.radio-list{display:flex; flex-direction:column; gap:8px}
.radio-row{
  display:flex; gap:10px; align-items:center;
  border:1px solid var(--line);
  background: rgba(0,0,0,.14);
  border-radius: 16px;
  padding:10px;
}
.radio-row:hover{border-color: rgba(253,186,116,.25)}
.radio-row input{accent-color: var(--accent)}
.radio-ico{display:inline-flex}
.radio-title{font-weight:900; display:block}

.table-wrap{overflow:visible; border-radius: 16px; border:1px solid var(--line)}
.table{width:100%; border-collapse:collapse; table-layout:fixed}
.table th, .table td{padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:top; white-space:normal; word-break:break-word}
.table th{font-size:12px; color:var(--muted); text-align:left}
.table tr:hover td{background: rgba(255,255,255,.02)}
.t-right{text-align:right}

.item-row{display:flex; gap:10px; align-items:center; min-width:0}
.item-name{font-weight:900; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}

.pager{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-top:12px;
  flex-wrap:wrap;
}
.pager-btns{display:flex; gap:10px; align-items:center; flex-wrap:wrap}

.cal-head{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:6px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  margin-bottom:8px;
}
.cal-grid{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:6px;
}
.cal-cell{
  border:1px solid var(--line);
  border-radius: 14px;
  padding:8px;
  background: rgba(0,0,0,.14);
  min-height: 92px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.cal-empty{background: transparent; border-color: transparent}
.cal-top{display:flex; justify-content:space-between; align-items:center}
.cal-day{font-weight:900; font-size:12px; font-family:var(--mono)}
.cal-check{font-weight:900; color: var(--ok)}
.cal-cell.is-today{border-color: rgba(253,186,116,.40); background: rgba(253,186,116,.06)}
.cal-cell.is-checked{border-color: rgba(65,240,200,.35)}
.cal-reward{
  display:flex; gap:8px; align-items:center;
}
.cal-reward-name{font-weight:900; font-size:11px; line-height:1.15; max-height:2.3em; overflow:hidden}
.cal-reward-hint{font-size:10px; color:rgba(231,238,247,.55); margin-top:2px; line-height:1.1}
.cal-none{margin-top:auto}

.tip{
  position: fixed;
  z-index: 9999;
  width: 340px;
  max-width: calc(100vw - 24px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(12,18,26,.95);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  padding: 10px;
  pointer-events:none;
}
.tw-tip{
  color: rgba(231,238,247,.92);
}
.tw-tip .font-semibold{font-weight:900}
.tw-tip .text-emerald-400{color: var(--ok)}
.tw-tip .opacity-70{opacity:.75}
.tw-tip .opacity-80{opacity:.82}
.tw-tip .border-white\/10{border-color: var(--line) !important;}
.tw-tip .space-y-1 > * + *{margin-top:4px}

.fx-name{
  font-weight:900;
  display:inline-block;
  --fx: none;
}
.fx--rainbow{
  background: linear-gradient(90deg, #ff5a7a, #fdba74, #c4b5fd, #41f0c8, #7ca8ff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.fx--gold{
  color:#fdba74;
  text-shadow: 0 0 18px rgba(253,186,116,.18);
}
.fx--neon{
  color: var(--accent);
  text-shadow: 0 0 16px rgba(196,181,253,.25);
}
.fx--fire{
  background: linear-gradient(180deg, #fdba74, #ff5a7a);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow: 0 0 16px rgba(255,90,122,.22);
}
.fx--ice{
  color:#9fe8ff;
  text-shadow: 0 0 16px rgba(159,232,255,.16);
}

.name-fx-base {
  font-weight: 700;
}

.name-fx-HellFire {
  position: relative;
  display: inline-block;
  padding: 0.15rem 0.85rem;
  border-radius: 999px;
  color: #ffe4e6;
  font-weight: 800;
}

.name-fx-HellFire::before {
  content: "";
  position: absolute;
  inset: -0.2rem;
  border-radius: inherit;
  background: url("https://media.tenor.com/3Q1baudFVBsAAAAM/fire-california.gif")
              center / 155% auto no-repeat;
  filter: blur(0.7px);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: hellfireFlash 1.8s ease-in-out infinite;
}

.name-fx-HellFire::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(15,15,15,0) 0%,
      rgba(15,15,15,0) 55%,
      rgba(15,15,15,0.8) 100%);
  pointer-events: none;
}

@keyframes hellfireFlash {
  0%, 100% {
    opacity: 0.75;
    filter: blur(0.7px) brightness(0.9);
  }
  35% {
    opacity: 1;
    filter: blur(0.6px) brightness(1.18);
  }
  60% {
    opacity: 0.85;
    filter: blur(0.7px) brightness(1.02);
  }
}

@keyframes devilGifShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-0.5px, 0.3px); }
  40% { transform: translate(0.4px, -0.4px); }
  60% { transform: translate(-0.3px, 0.4px); }
  80% { transform: translate(0.4px, -0.2px); }
}

.name-fx-HellFire--shake {
  animation: devilGifShake 0.35s steps(2, end) infinite;
}

.name-fx-BloodLightning {
  position: relative;
  display: inline-block;
  padding: 0.15rem 0.85rem;
  border-radius: 999px;

  background-color: transparent;
  color: #e5f2ff;
  font-weight: 800;
}

.name-fx-BloodLightning::before {
  content: "";
  position: absolute;
  inset: -0.2rem;
  border-radius: inherit;
  background: url("https://i.pinimg.com/originals/b5/66/af/b566af8bab8557bafb92a77717ab70f7.gif")
              center / 155% auto no-repeat;
  filter: blur(0.7px);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: lightningFlash 1.8s ease-in-out infinite;
}

.name-fx-BloodLightning::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(15,23,42,0) 0%,
      rgba(15,23,42,0) 55%,
      rgba(15,23,42,0.75) 100%);
  pointer-events: none;
}

@keyframes lightningFlash {
  0%, 100% {
    opacity: 0.75;
    filter: blur(0.7px) brightness(0.9);
  }
  35% {
    opacity: 1;
    filter: blur(0.6px) brightness(1.15);
  }
  60% {
    opacity: 0.85;
    filter: blur(0.7px) brightness(1);
  }
}

.name-fx-Reaper {
  position: relative;
  display: inline-block;
  padding: 0.15rem 0.85rem;
  border-radius: 999px;
  color: #e9e5ff;
  font-weight: 800;
}

.name-fx-Reaper::before {
  content: "";
  position: absolute;
  inset: -0.2rem;
  border-radius: inherit;
  background: url("https://i.pinimg.com/originals/5d/47/62/5d4762aa05a5be241cf342c105ed61ff.gif")
              center / 155% auto no-repeat;
  filter: blur(0.7px);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: reaperFlash 1.9s ease-in-out infinite;
}

.name-fx-Reaper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(15, 23, 42, 0) 0%,
      rgba(15, 23, 42, 0) 55%,
      rgba(15, 23, 42, 0.9) 100%);
  pointer-events: none;
}

@keyframes reaperFlash {
  0%, 100% {
    opacity: 0.7;
    filter: blur(0.7px) brightness(0.9);
  }
  35% {
    opacity: 1;
    filter: blur(0.6px) brightness(1.15);
  }
  65% {
    opacity: 0.85;
    filter: blur(0.7px) brightness(1.0);
  }
}

.name-fx-Irezumi {
  position: relative;
  display: inline-block;
  padding: 0.15rem 0.85rem;
  border-radius: 999px;
  color: #fdf8f1;
  font-weight: 800;
}

.name-fx-Irezumi::before {
  content: "";
  position: absolute;
  inset: -0.2rem;
  border-radius: inherit;
  background: url("https://i.imgur.com/atrHtoF.jpeg")
  center / 155% auto no-repeat;
  filter: blur(0.5px);
  opacity: 0.96;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: irezumiPulse 2.4s ease-in-out infinite;
}

.name-fx-Irezumi::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(15, 23, 42, 0) 0%,
      rgba(15, 23, 42, 0) 55%,
      rgba(15, 23, 42, 0.9) 100%);
  pointer-events: none;
}

@keyframes irezumiPulse {
  0%, 100% {
    opacity: 0.85;
    filter: blur(0.5px) brightness(0.95);
  }
  40% {
    opacity: 1;
    filter: blur(0.45px) brightness(1.08);
  }
  70% {
    opacity: 0.9;
    filter: blur(0.5px) brightness(1.0);
  }
}

.name-fx-Zeon {
  position: relative;
  display: inline-block;
  padding: 0.15rem 0.85rem;
  border-radius: 999px;
  color: #e5f2ff;
  font-weight: 800;
}

.name-fx-Zeon::before {
  content: "";
  position: absolute;
  inset: -0.2rem;
  border-radius: inherit;
  background: url("https://media.tenor.com/ezkaJSNyfIsAAAAM/lightning-strike-thunderstorm.gif")
              center / 155% auto no-repeat;
  filter: blur(0.7px);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: zeonFlash 1.8s ease-in-out infinite;
}

.name-fx-Zeon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(15, 23, 42, 0) 0%,
      rgba(15, 23, 42, 0) 55%,
      rgba(15, 23, 42, 0.9) 100%);
  pointer-events: none;
}

@keyframes zeonFlash {
  0%, 100% {
    opacity: 0.75;
    filter: blur(0.7px) brightness(0.9);
  }
  35% {
    opacity: 1;
    filter: blur(0.6px) brightness(1.2);
  }
  60% {
    opacity: 0.85;
    filter: blur(0.7px) brightness(1.0);
  }
}

.name-fx-Halloween {
  position: relative;
  display: inline-block;
  padding: 0.15rem 0.85rem;
  border-radius: 999px;
  color: #ffeadd;
  font-weight: 800;
}

.name-fx-Halloween::before {
  content: "";
  position: absolute;
  inset: -0.2rem;
  border-radius: inherit;
  background: url("https://cdn.pixabay.com/animation/2025/09/16/10/50/10-50-06-778_512.gif")
              center / 155% auto no-repeat;
  filter: blur(0.7px);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: halloweenFlash 2.1s ease-in-out infinite;
}

.name-fx-Halloween::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(15, 23, 42, 0) 0%,
      rgba(15, 23, 42, 0) 55%,
      rgba(15, 23, 42, 0.9) 100%);
  pointer-events: none;
}

@keyframes halloweenFlash {
  0%, 100% {
    opacity: 0.8;
    filter: blur(0.7px) brightness(0.95);
  }
  35% {
    opacity: 1;
    filter: blur(0.6px) brightness(1.15);
  }
  65% {
    opacity: 0.9;
    filter: blur(0.7px) brightness(1.0);
  }
}

.name-fx-Snow {
  position: relative;
  display: inline-block;
  padding: 0.15rem 0.85rem;
  border-radius: 999px;
  color: #e5f4ff;
  font-weight: 800;
}

.name-fx-Snow::before {
  content: "";
  position: absolute;
  inset: -0.2rem;
  border-radius: inherit;
  background: url("https://i.pinimg.com/originals/89/26/64/892664d38ee75481cc1f47c51ce0a856.gif")
              center / 155% auto no-repeat;
  filter: blur(0.6px);
  opacity: 0.95;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: snowFlash 2.2s ease-in-out infinite;
}

.name-fx-Snow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(15, 23, 42, 0) 0%,
      rgba(15, 23, 42, 0) 55%,
      rgba(15, 23, 42, 0.9) 100%);
  pointer-events: none;
}

@keyframes snowFlash {
  0%, 100% {
    opacity: 0.85;
    filter: blur(0.6px) brightness(0.96);
  }
  40% {
    opacity: 1;
    filter: blur(0.5px) brightness(1.1);
  }
  70% {
    opacity: 0.9;
    filter: blur(0.6px) brightness(1.0);
  }
}

@media (max-width: 980px){
  .grid-3{grid-template-columns: 1fr 1fr}
  .auth-wrap{grid-template-columns: 1fr}
  .slots--compact{grid-template-columns: repeat(2, 1fr)}
  .table{min-width: 640px}
}
@media (max-width: 780px){
  .sidebar{
    position:relative;
    width: 100%;
    height:auto;
    border-right:none;
    border-bottom:1px solid var(--line);
  }
  .app-shell{flex-direction:column}
  .content{padding:16px}
  .flash-wrap{padding:0 16px}
  .topbar{padding:14px 16px}
  .grid-2{grid-template-columns: 1fr}
  .span-2{grid-column: auto}
}

@media (max-width: 780px){
  .table-wrap{border:none}
  .table{display:block}
  .table thead{display:none}
  .table tbody{display:flex; flex-direction:column; gap:10px}
  .table tr{display:block; border:1px solid var(--line); border-radius:16px; overflow:hidden; background: rgba(0,0,0,.14)}
  .table td{display:flex; justify-content:space-between; gap:12px; padding:10px 12px; border-bottom:1px solid var(--line)}
  .table td:last-child{border-bottom:none}
  .table td::before{content: attr(data-label); font-size:12px; color:var(--muted); font-weight:700}
  .table .btn{width:auto}
}

@media (max-width: 520px){
  .slots{grid-template-columns: repeat(4, minmax(0, 1fr)); gap:8px}
  .slots--compact{grid-template-columns: repeat(4, minmax(0, 1fr))}
  .slots--compact .slot-btn-name{display:none}
}
@media (max-width: 380px){
  .slots{grid-template-columns: repeat(3, minmax(0, 1fr)); gap:8px}
  .slots--compact{grid-template-columns: repeat(3, minmax(0, 1fr))}
}

.inv-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:12px;
}

@media (max-width: 720px){
  .inv-grid{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 420px){
  .inv-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}

.inv-slot{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(10,12,14,.55);
  padding:12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  cursor:pointer;
}

.inv-slot:disabled{
  cursor:not-allowed;
  opacity:.8;
}

.inv-slot-ico{
  position:relative;
  width:64px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.inv-slot.is-disabled .inv-slot-ico{
  opacity:.95;
}
.inv-slot-x{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:42px;
  font-weight:900;
  color:#ff2d2d;
  text-shadow:0 2px 18px rgba(255,45,45,.55);
  pointer-events:none;
}

.inv-slot-name{
  width:100%;
  font-size:12px;
  line-height:1.2;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  opacity:.95;
}

.item-ico{
  width:64px;
  height:64px;
  display:block;
  flex:0 0 auto;
  background-repeat:no-repeat;
  image-rendering:auto;
}

.mylist-controls{
  margin-top:12px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.mylist-controls .mylist-search{
  min-width:220px;
  flex:1 1 220px;
}
.mylist-controls .mylist-sort{
  min-width:160px;
}

.table-fit{
  width:100%;
  table-layout:fixed;
}
.table-fit th, .table-fit td{
  word-break:break-word;
}
.item-row{
  display:flex;
  gap:10px;
  align-items:center;
  min-width:0;
}
.item-row-text{
  min-width:0;
}
.item-name{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

@media (max-width: 840px){
  .table-fit thead{ display:none; }
  .table-fit, .table-fit tbody, .table-fit tr, .table-fit td{
    display:block;
    width:100%;
  }
  .table-fit tr{
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    padding:12px;
    margin-bottom:12px;
    background:rgba(10,12,14,.35);
  }
  .table-fit td{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    padding:10px 0;
    border-bottom:1px solid rgba(255,255,255,.06);
  }
  .table-fit td:last-child{ border-bottom:none; }
  .table-fit td::before{
    content:attr(data-label);
    opacity:.7;
    font-size:12px;
    padding-right:10px;
    flex:0 0 auto;
  }
  .table-fit .t-right{
    text-align:right;
  }
}

.table-fit .item-name{
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.table-fit .item-row{
  align-items: flex-start;
}

.table-fit .item-row-text{
  flex: 1 1 auto;
  min-width: 0;
}

.table-fit th.t-right,
.table-fit td.t-right{
  white-space: nowrap;
}

.app-shell.app-shell--topnav{
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

.sidebar.sidebar--top{
  width:100% !important;
  height:auto !important;
  position:sticky !important;
  top:0 !important;
  z-index:50 !important;

  border-right:none !important;
  border-bottom:1px solid var(--line) !important;

  padding:12px 16px !important;
  background: rgba(10,15,20,.72) !important;
  backdrop-filter: blur(12px) !important;

  overflow:visible !important;
}

.sidebar.sidebar--top .sidebar-inner{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap:14px;
  width:100%;
}

.sidebar.sidebar--top .nav.nav--top{
  margin-top:0 !important;
  display:flex !important;
  flex-direction:row !important;
  gap:8px !important;
  align-items:center !important;
  flex-wrap:wrap !important;
}

.sidebar.sidebar--top .nav.nav--top .nav-link{
  padding:10px 12px !important;
  border-radius:12px !important;
  white-space:nowrap !important;
}

.sidebar.sidebar--top .nav-sep{ display:none !important; }

.sidebar-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  min-width:0;
}

.side-card.side-card--inline{
  margin-top:0 !important;
  padding:10px 12px !important;
  min-width: 320px;
  max-width: 520px;
}

.side-card--inline .side-char{
  margin-top:10px;
  align-items:center;
}
.side-card--inline .side-char-meta{
  min-width:0;
}
.side-card--inline .side-name{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 260px;
}

.top-actions.top-actions--topnav{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.main.main--full{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
}

.crumbs.crumbs--main{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 22px 0;
  color: var(--muted);
  font-weight:800;
}
.crumbs--main .crumb-dot{
  width:10px; height:10px;
  border-radius:999px;
  background: rgba(231,238,247,.25);
}
.crumbs--main .crumb{
  color: rgba(231,238,247,.85);
}

.content.content--wide{
  padding:18px 22px 22px !important;
  max-width: none !important;
  width: 100% !important;
}

.flash-wrap{
  padding: 0 22px !important;
}

.footer{
  padding:16px 22px !important;
}

@media (max-width: 780px){
  .app-shell.app-shell--topnav{ flex-direction:column !important; }
  .sidebar.sidebar--top{ position:sticky !important; top:0 !important; }

  .sidebar.sidebar--top .sidebar-inner{
    grid-template-columns: 1fr;
    gap:10px;
  }
  .sidebar-right{
    justify-content:space-between;
    flex-wrap:wrap;
  }
  .side-card.side-card--inline{
    min-width: 100%;
    max-width: 100%;
  }
}

.footer{
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 999;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);

  font-size: 12px;
  color: rgba(229,231,235,.92);
}

.footer-left, .footer-right{
  flex: 0 0 auto;
}

.footer-left::after{
  content: "•";
  margin: 0 10px;
  opacity: .6;
}

.main{
  padding-bottom: 70px;
}
