/* =====================================================================
   WoDBO Sparking - layout & theme (loaded after main.css / wodbo-pages.css)
   ===================================================================== */
:root {
  --sp-bg: #030817;
  --sp-bg2: #061230;
  --sp-panel: rgba(7, 21, 46, .92);
  --sp-panel2: rgba(10, 33, 71, .9);
  --sp-line: rgba(61, 177, 255, .45);
  --sp-line2: rgba(61, 177, 255, .18);
  --sp-blue: #087cff;
  --sp-cyan: #55d9ff;
  --sp-gold: #ffbf25;
  --sp-orange: #ff8a00;
  --sp-txt: #f4f9ff;
  --sp-dim: #9fb5d1;
  --sp-glow: 0 0 14px rgba(21, 156, 255, .35), inset 0 0 22px rgba(0, 110, 255, .08);
  --sp-r: 12px;
  --sp-head: 'Teko', 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --sp-font: 'Roboto Condensed', Verdana, Arial, sans-serif;
}

/* ---------- base ---------- */
body.sp {
  background: radial-gradient(1200px 600px at 50% -10%, rgba(21, 120, 255, .35), transparent 70%),
              linear-gradient(180deg, #04102a 0%, var(--sp-bg) 60%) fixed !important;
  background-color: var(--sp-bg) !important;
  color: var(--sp-txt);
  font-family: var(--sp-font);
  font-size: 14px;
  min-height: 100vh;
  overflow-x: hidden;
}
body.sp a { color: var(--sp-cyan); text-decoration: none; }
body.sp a:hover { color: #fff; text-decoration: none; }
.sp *, .sp *::before, .sp *::after { box-sizing: border-box; }
.sp-wrap { width: 100%; max-width: 1460px; margin: 0 auto; padding: 0 16px; }
.sp-i { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.sp-empty { color: var(--sp-dim); font-size: 13px; padding: 6px 2px; list-style: none; }

/* full-page background picture (fixed, scales to any screen, also works on phones) */
.sp-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url(../images/sparking/page_bg.jpg) center top / cover no-repeat, var(--sp-bg);
}
.sp-bg::after { /* darkens the picture under the panels so text stays readable */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3, 8, 23, .05) 0%, rgba(3, 8, 23, .35) 28%, rgba(3, 8, 23, .62) 55%, rgba(3, 8, 23, .78) 100%);
}

/* drifting ki sparks */
.sp-sparks { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sp-sparks i {
  position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%;
  background: var(--sp-cyan); box-shadow: 0 0 8px 2px rgba(85, 217, 255, .8);
  opacity: 0; animation: sp-rise linear infinite;
}
@keyframes sp-rise {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: .9; }
  100% { transform: translateY(-105vh) translateX(30px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .sp-sparks { display: none; } }

/* ---------- top bar ---------- */
.sp-top { position: absolute; top: 0; left: 0; right: 0; z-index: 50; padding-top: 12px; }
.sp-top-in { display: flex; align-items: flex-start; justify-content: flex-end; gap: 12px; padding-left: 390px; } /* left side is kept free for the logo */
.sp-nav {
  display: flex; align-items: stretch; margin-left: auto; min-width: 0;
  background: linear-gradient(180deg, rgba(10, 33, 71, .95), rgba(3, 12, 32, .95));
  border: 1px solid var(--sp-line); border-radius: 12px; box-shadow: var(--sp-glow);
}
.sp-nav-a {
  display: flex; align-items: center; gap: 6px; padding: 0 13px; height: 46px;
  color: var(--sp-txt) !important; font: 500 20px/1 var(--sp-head); letter-spacing: .3px;
  background: none; border: 0; border-right: 1px solid var(--sp-line2); cursor: pointer; white-space: nowrap;
}
.sp-nav > :last-child .sp-nav-a, .sp-nav > .sp-nav-a:last-child { border-right: 0; }
.sp-nav-a .sp-i:first-child { width: 19px; height: 19px; color: #dbe9ff; }
.sp-nav-a .sp-i:last-child:not(:first-child) { width: 14px; height: 14px; opacity: .8; }
.sp-nav-a:hover, .sp-dd:hover > .sp-nav-a, .sp-dd.is-open > .sp-nav-a { background: rgba(8, 124, 255, .18); color: #fff !important; }
.sp-nav-a.is-on {
  background: linear-gradient(180deg, #1d8dff, #0754c9); border-radius: 11px 0 0 11px;
  box-shadow: 0 0 16px rgba(8, 124, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.sp-dd { position: relative; display: flex; }
.sp-dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; padding: 6px;
  background: rgba(5, 16, 38, .98); border: 1px solid var(--sp-line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55), var(--sp-glow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .15s; z-index: 60;
}
.sp-dd:hover .sp-dd-menu, .sp-dd.is-open .sp-dd-menu { opacity: 1; visibility: visible; transform: none; }
.sp-dd-menu a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--sp-txt) !important; font-size: 14px; }
.sp-dd-menu a:hover { background: rgba(8, 124, 255, .25); color: #fff !important; }
.sp-top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sp-status {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px; font-size: 13px; color: var(--sp-txt);
  background: rgba(3, 12, 32, .85); border: 1px solid var(--sp-line2); border-radius: 20px;
}
.sp-status b { color: #fff; }
.sp-dot { width: 10px; height: 10px; border-radius: 50%; background: #e04848; box-shadow: 0 0 8px #e04848; }
.sp-dot.on { background: #33e06a; box-shadow: 0 0 8px #33e06a; }
.sp-sep { width: 1px; height: 14px; background: var(--sp-line); }
.sp-search {
  display: flex; align-items: center; width: 180px; height: 38px;
  background: rgba(3, 12, 32, .92); border: 1px solid var(--sp-line); border-radius: 10px; box-shadow: var(--sp-glow);
}
.sp-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; color: #fff !important; padding: 0 12px; font-size: 14px; outline: 0; }
.sp-search input::placeholder { color: var(--sp-dim); }
.sp-search button { background: none; border: 0; color: #fff; padding: 0 12px; height: 100%; cursor: pointer; }
.sp-burger { display: none; background: rgba(3, 12, 32, .9); border: 1px solid var(--sp-line); border-radius: 10px; color: #fff; width: 46px; height: 46px; }
.sp-burger .sp-i { width: 24px; height: 24px; }

/* ---------- header ---------- */
.sp-hero { position: relative; height: 300px; z-index: 1; }
.sp-hero::before { /* blue glow behind the logo */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(480px 240px at 18% 45%, rgba(0, 140, 255, .45), transparent 70%);
}
.sp-hero-in { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-start; }
.sp-logo { position: relative; z-index: 4; display: block; width: 360px; margin-top: 8px; text-align: center; }
.sp-logo img { width: 100%; height: auto; filter: drop-shadow(0 0 18px rgba(0, 150, 255, .55)); transition: transform .2s; }
.sp-logo:hover img { transform: scale(1.03); }
.sp-hero-txt { display: block; margin-top: 2px; color: #fff; font: 500 26px/1 var(--sp-head); letter-spacing: 1px; text-shadow: 0 2px 6px #000, 0 0 12px rgba(0, 140, 255, .9); font-style: italic; }
.sp-hero-char { position: absolute; left: 370px; bottom: -150px; z-index: 2; height: 470px; }
.sp-hero-char img { height: 100%; width: auto; filter: drop-shadow(0 0 22px rgba(0, 140, 255, .55)); }

/* ---------- 3 columns ---------- */
.sp-main { position: relative; z-index: 3; display: grid; grid-template-columns: 240px minmax(0, 1fr) 360px; gap: 14px; margin-top: -40px; align-items: start; }
.sp-left, .sp-right, .sp-center { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ---------- panel ---------- */
.sp-panel {
  position: relative; background: linear-gradient(180deg, var(--sp-panel2), var(--sp-panel));
  border: 1px solid var(--sp-line); border-radius: var(--sp-r); box-shadow: var(--sp-glow);
}
.sp-panel::before { /* glowing top edge */
  content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--sp-cyan), transparent); opacity: .8;
}
.sp-ph {
  display: flex; align-items: center; gap: 9px; padding: 10px 14px 8px;
  border-bottom: 1px solid var(--sp-line2); color: #fff; font: 500 25px/1 var(--sp-head); letter-spacing: .4px;
}
.sp-ph .sp-i { width: 26px; height: 26px; color: var(--sp-gold); }
.sp-ph .sp-ball { filter: drop-shadow(0 0 6px rgba(255, 170, 30, .7)); }
.sp-more { margin-left: auto; display: flex; align-items: center; gap: 2px; color: var(--sp-gold) !important; font: 500 18px/1 var(--sp-head); }
.sp-more .sp-i { width: 14px; height: 14px; color: var(--sp-gold); }
.sp-more:hover { color: #fff !important; }
.sp-pb { padding: 12px 14px; }

/* ---------- buttons & fields ---------- */
.sp-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 40px;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  font: 500 21px/1 var(--sp-head); letter-spacing: .4px; transition: filter .15s, transform .15s, box-shadow .15s;
}
.sp-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.sp-btn .sp-i { width: 16px; height: 16px; }
.sp-btn-gold { background: linear-gradient(180deg, #ffd34a, #ff9a12 60%, #f07b00); color: #3a1d00 !important; border-color: #ffd96b; box-shadow: 0 0 14px rgba(255, 160, 20, .55), inset 0 1px 0 rgba(255, 255, 255, .5); }
.sp-btn-ghost { background: rgba(8, 124, 255, .15); color: #fff !important; border-color: var(--sp-line); margin-top: 8px; }
.sp-btn-red { background: rgba(224, 72, 72, .18); color: #ffb3b3 !important; border-color: rgba(224, 72, 72, .5); margin-top: 8px; height: 34px; font-size: 18px; }
.sp-btn-sm { display: inline-flex; width: auto; height: 36px; padding: 0 18px; }
.sp-field {
  display: flex; align-items: center; gap: 8px; height: 40px; margin: 0 0 9px; padding: 0 10px;
  background: rgba(3, 12, 32, .85); border: 1px solid var(--sp-line2); border-radius: 8px; font-weight: normal;
}
.sp-field:focus-within { border-color: var(--sp-cyan); box-shadow: 0 0 10px rgba(85, 217, 255, .35); }
.sp-field .sp-i { color: #dbe9ff; }
.sp-field input { flex: 1; min-width: 0; background: none !important; border: 0; outline: 0; color: #fff !important; font-size: 14px; }
.sp-field input::placeholder { color: var(--sp-dim); }
.sp-links { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: 10px; font-size: 13px; font-weight: bold; }
.sp-links a { color: var(--sp-gold) !important; }
.sp-welcome { font: 500 22px/1 var(--sp-head); color: var(--sp-gold); margin-bottom: 6px; }
.sp-acc-name { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: #fff; font-weight: bold; word-break: break-all; }

/* ---------- game menu ---------- */
.sp-menu { padding: 6px 8px 8px; }
.sp-menu a {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 7px;
  color: var(--sp-txt) !important; font: 400 19px/1.1 var(--sp-head); letter-spacing: .3px;
}
.sp-menu a span { flex: 1; }
.sp-menu a .sp-i:first-child { color: #cfe3ff; width: 19px; height: 19px; }
.sp-menu a .sp-i:last-child { width: 14px; height: 14px; opacity: .6; }
.sp-menu a:hover, .sp-menu a.is-on { background: linear-gradient(90deg, rgba(8, 124, 255, .35), transparent); color: #fff !important; }
.sp-menu a:hover .sp-i:first-child, .sp-menu a.is-on .sp-i:first-child { color: var(--sp-cyan); }
.sp-menu-sep { height: 1px; margin: 6px 8px; background: var(--sp-line2); }
.sp-discord {
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px;
  background: linear-gradient(180deg, var(--sp-panel2), var(--sp-panel)); border: 1px solid var(--sp-line); border-radius: var(--sp-r);
  box-shadow: var(--sp-glow); color: #fff !important; font: 500 24px/1 var(--sp-head); transition: transform .15s;
}
.sp-discord:hover { transform: translateY(-2px); }
.sp-discord .sp-i { width: 40px; height: 40px; color: #7289ff; }
.sp-discord small { display: block; font: 400 15px/1 var(--sp-font); color: var(--sp-dim); }

/* ---------- home: tiles ---------- */
.sp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sp-tile {
  display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 12px 14px; background: linear-gradient(180deg, var(--sp-panel2), var(--sp-panel));
  border: 1px solid var(--sp-line); border-radius: var(--sp-r); box-shadow: var(--sp-glow); transition: transform .15s, border-color .15s;
}
.sp-tile:hover { transform: translateY(-2px); border-color: var(--sp-cyan); }
.sp-ti { grid-row: 1 / 3; display: flex; }
.sp-ti .sp-i { width: 44px; height: 44px; }
.sp-ti.g { color: #3ee072; } .sp-ti.y { color: var(--sp-gold); } .sp-ti.o { color: var(--sp-orange); } .sp-ti.b { color: var(--sp-cyan); }
.sp-tile b { color: #fff; font: 500 clamp(22px, 1.9vw, 30px)/1 var(--sp-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-tile small { color: var(--sp-txt); font-size: 14px; }

/* ---------- home: news ---------- */
.sp-news { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 12px; }
.sp-news-main {
  position: relative; display: grid; grid-template-columns: 44% 1fr; min-height: 230px; overflow: hidden;
  border: 1px solid var(--sp-line); border-radius: 10px; background: rgba(3, 12, 32, .7);
}
.sp-news-img { position: relative; background: radial-gradient(circle at 40% 40%, rgba(8, 124, 255, .55), rgba(3, 12, 32, .9) 70%); }
.sp-news-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 6px; background: linear-gradient(180deg, #ffd34a, #f08a00); color: #3a1d00; font: 500 18px/1 var(--sp-head); }
.sp-news-txt { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.sp-news-txt h2 { margin: 0; color: #fff; font: italic 500 30px/1 var(--sp-head); text-shadow: 0 0 10px rgba(0, 140, 255, .8); }
.sp-date { display: flex; align-items: center; gap: 6px; color: var(--sp-txt); font-size: 14px; }
.sp-date .sp-i { width: 16px; height: 16px; color: var(--sp-orange); }
.sp-news-txt p { margin: 0; color: var(--sp-txt); line-height: 1.45; flex: 1; }
.sp-news-list { display: flex; flex-direction: column; gap: 8px; }
.sp-news-item {
  display: flex; align-items: center; gap: 10px; padding: 6px; flex: 1;
  border: 1px solid var(--sp-line2); border-radius: 9px; background: rgba(3, 12, 32, .55); color: #fff !important; transition: border-color .15s, background .15s;
}
.sp-news-item:hover { border-color: var(--sp-cyan); background: rgba(8, 124, 255, .15); }
.sp-news-thumb { position: relative; flex: none; width: 104px; height: 64px; border-radius: 7px; overflow: hidden; border: 1px solid var(--sp-line2); background: radial-gradient(circle, rgba(8, 124, 255, .5), rgba(3, 12, 32, .9)); }
.sp-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-news-it { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sp-news-it b { font: 500 19px/1.05 var(--sp-head); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sp-news-it small { display: flex; align-items: center; gap: 4px; color: var(--sp-dim); }
.sp-news-it small .sp-i { width: 13px; height: 13px; color: var(--sp-orange); }
.sp-news-item > .sp-i { color: var(--sp-orange); }

/* ---------- home: explore ---------- */
.sp-explore { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sp-ex {
  position: relative; display: block; height: 160px; overflow: hidden; border-radius: 10px; border: 1px solid var(--sp-line);
  background: radial-gradient(circle at 50% 35%, rgba(8, 124, 255, .6), rgba(3, 12, 32, .95) 75%); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.sp-ex:hover { transform: translateY(-3px); border-color: var(--sp-cyan); box-shadow: 0 0 18px rgba(85, 217, 255, .5); }
.sp-ex img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sp-ex:hover img { transform: scale(1.06); }
.sp-ex-ph { position: absolute; top: 10px; left: 8px; right: 8px; color: rgba(255, 255, 255, .35); font-size: 10px; text-align: center; word-break: break-all; }
.sp-ex-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 6px 8px; text-align: center; background: linear-gradient(0deg, rgba(3, 8, 23, .95), transparent); }
.sp-ex-t b { display: block; color: #fff; font: italic 500 clamp(18px, 1.7vw, 28px)/1 var(--sp-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; text-shadow: 0 0 6px #000, 0 0 10px rgba(0, 140, 255, .8); }
.sp-ex-t small { display: block; color: var(--sp-txt); font-size: 13px; margin-top: 2px; }

/* ---------- right column ---------- */
.sp-event {
  position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 120px; padding: 14px 16px; overflow: hidden;
  background: linear-gradient(110deg, #08204d, #0b3c8a 60%, #5a2bb8); border: 1px solid var(--sp-line); border-radius: var(--sp-r);
  box-shadow: var(--sp-glow); color: #fff !important;
}
.sp-event-char { position: absolute; right: -8px; top: -6px; bottom: 0; width: 150px; }
.sp-event-char img { width: 100%; height: 100%; object-fit: cover; object-position: top; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.sp-event > span:not(.sp-event-char) { position: relative; z-index: 1; }
.sp-event-lbl { font-size: 16px; color: var(--sp-txt); }
.sp-event-name { font: italic 500 32px/1 var(--sp-head); color: var(--sp-gold); text-shadow: 0 0 10px rgba(255, 140, 0, .6); max-width: 75%; }
.sp-event-time { font-size: 16px; color: #fff; }
.sp-event-cd { font: 500 18px/1 var(--sp-head); color: var(--sp-cyan); letter-spacing: .5px; }
.sp-event .sp-btn { align-self: flex-end; height: 30px; font-size: 18px; margin-top: -26px; }
.sp-rank, .sp-kills { list-style: none; margin: 0; padding: 6px 12px 10px; counter-reset: sp; }
.sp-rank li { counter-increment: sp; border-bottom: 1px solid var(--sp-line2); }
.sp-rank li:last-child, .sp-kills li:last-child { border-bottom: 0; }
.sp-rank a { display: flex; align-items: center; gap: 10px; padding: 5px 2px; color: #fff !important; }
.sp-rank a::before { content: counter(sp) "."; width: 18px; color: var(--sp-gold); font-weight: bold; }
.sp-rank img { width: 30px; height: 30px; object-fit: contain; border-radius: 50%; background: rgba(3, 12, 32, .8); border: 1px solid var(--sp-line2); }
.sp-rn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.sp-lvl { color: var(--sp-gold); font-weight: bold; font-size: 14px; white-space: nowrap; }
.sp-lvl.sp-k { color: var(--sp-dim); font-weight: normal; font-size: 12px; }
.sp-rank a:hover .sp-rn { color: var(--sp-cyan); }
.sp-kills { counter-reset: spk; }
.sp-kills li { counter-increment: spk; display: flex; align-items: center; gap: 5px; padding: 5px 2px; border-bottom: 1px solid var(--sp-line2); font-size: 14px; }
.sp-kills li::before { content: counter(spk) "."; width: 18px; color: var(--sp-gold); font-weight: bold; }
.sp-kills li.sp-empty::before { content: none; }
.sp-kills a { color: #fff !important; max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-kills a:hover { color: var(--sp-cyan) !important; }
.sp-kills .sp-i { width: 14px; height: 14px; color: var(--sp-orange); }
.sp-kills small { margin-left: auto; color: var(--sp-dim); white-space: nowrap; }

/* ---------- content pages ---------- */
.sp-content .sp-pb { padding: 16px 18px; }
.sp-content .main-content { color: var(--sp-txt); text-shadow: none; }
.main-content {
  --wp-bg: #061230;
  --wp-card: #0b2554;
  --wp-card2: #081d44;
  --wp-hover: #12357a;
  --wp-line: #1d4f9c;
  --wp-head: #04112b;
  --wp-txt: #eaf3ff;
  --wp-dim: #9fb5d1;
  --wp-acc: #ffbf25;
  --wp-acc2: #55d9ff;
  --wp-gold: #ffd76a;
}
.main-content .wp-h { font-family: var(--sp-head); }
/* bootstrap tables / forms used by MyAAC pages */
.main-content .table, .main-content .TableContent { color: var(--sp-txt); }
.main-content .table > tbody > tr > td, .main-content .table > thead > tr > th { border-color: var(--sp-line2); }
.main-content .table-striped > tbody > tr:nth-of-type(odd) { background: rgba(8, 124, 255, .07); }
.main-content input[type=text], .main-content input[type=password], .main-content input[type=email], .main-content input[type=number],
.main-content select, .main-content textarea {
  background: rgba(3, 12, 32, .9); color: #fff; border: 1px solid var(--sp-line); border-radius: 6px; padding: 5px 8px;
}
.main-content input:focus, .main-content select:focus, .main-content textarea:focus { outline: 0; border-color: var(--sp-cyan); box-shadow: 0 0 8px rgba(85, 217, 255, .4); }
.main-content .btn-primary { background: linear-gradient(180deg, #1d8dff, #0754c9); border-color: #3aa0ff; }
.main-content .btn-success { background: linear-gradient(180deg, #ffd34a, #f08a00); border-color: #ffd96b; color: #3a1d00; }
.sp .nav-tabs { border-color: var(--sp-line); }
.sp .nav-tabs > li > a { color: var(--sp-txt); background: rgba(8, 124, 255, .1); border-color: var(--sp-line2); }
.sp .nav-tabs > li.active > a, .sp .nav-tabs > li.active > a:hover { color: #fff; background: rgba(8, 124, 255, .35); border-color: var(--sp-line); }

/* news (single news / archive) */
.sp-newsbox { margin-bottom: 16px; border: 1px solid var(--sp-line); border-radius: 10px; overflow: hidden; background: rgba(3, 12, 32, .55); }
.sp-newsbox-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: linear-gradient(90deg, rgba(8, 124, 255, .35), rgba(3, 12, 32, .4)); border-bottom: 1px solid var(--sp-line2); }
.sp-newsbox-h img { width: 28px; height: 28px; }
.sp-newsbox-h h3 { margin: 0; flex: 1; color: #fff; font: italic 500 28px/1 var(--sp-head); }
.sp-newsbox-h small { color: var(--sp-dim); }
.sp-newsbox-b { padding: 14px 16px; color: var(--sp-txt); line-height: 1.55; }
.sp-newsbox-b img { max-width: 100%; height: auto; }
.sp-newsbox-f { padding: 0 16px 12px; text-align: right; }

/* ---------- footer ---------- */
.sp-foot { position: relative; z-index: 3; margin-top: 18px; border-top: 1px solid var(--sp-line); background: rgba(3, 8, 23, .92); box-shadow: 0 -8px 24px rgba(0, 90, 255, .15); }
.sp-foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 10px; }
.sp-foot-links { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-foot-links a { color: var(--sp-txt) !important; font-size: 15px; }
.sp-foot-links a + a::before { content: "\2022"; margin: 0 10px 0 4px; color: var(--sp-dim); }
.sp-foot-links a:hover { color: var(--sp-cyan) !important; }
.sp-foot-brand { display: flex; align-items: center; gap: 8px; color: var(--sp-txt); font: italic 500 20px/1 var(--sp-head); text-transform: uppercase; }
.sp-foot-brand img { height: 44px; width: auto; }
.sp-social { display: flex; align-items: center; gap: 10px; color: var(--sp-txt); }
.sp-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: #fff !important; transition: transform .15s; }
.sp-social a:hover { transform: scale(1.1); }
.sp-social a.d { background: #5865f2; } .sp-social a.y { background: #e62117; } .sp-social a.f { background: #1877f2; }
.sp-foot-small { padding-bottom: 14px; text-align: center; color: var(--sp-dim); font-size: 12px; }
.sp-foot-small a { color: var(--sp-dim) !important; }

/* ---------- responsive ---------- */
@media (max-width: 1500px) {
  .sp-nav-a .sp-i:first-child { display: none; }
  .sp-nav-a { padding: 0 11px; }
  .sp-tile { grid-template-columns: 36px 1fr; padding: 10px; column-gap: 8px; }
  .sp-ti .sp-i { width: 32px; height: 32px; }
  .sp-tile small { font-size: 12px; }
}
@media (max-width: 1320px) {
  .sp-main { grid-template-columns: 220px minmax(0, 1fr) 310px; }
  .sp-nav-a { padding: 0 9px; font-size: 19px; }
  .sp-hero-char { left: 300px; }
  .sp-explore { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .sp-main { grid-template-columns: 220px minmax(0, 1fr); }
  .sp-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-news { grid-template-columns: 1fr; }
}
@media (max-width: 1220px) {
  .sp-top-in { padding-left: 0; }
  .sp-nav-a .sp-i:first-child { display: block; }
  .sp-burger { display: flex; align-items: center; justify-content: center; }
  .sp-nav { display: none; position: absolute; top: 64px; right: 16px; left: 16px; flex-direction: column; }
  .sp-nav.is-open { display: flex; }
  .sp-nav-a { height: 46px; border-right: 0; border-bottom: 1px solid var(--sp-line2); }
  .sp-nav-a.is-on { border-radius: 11px 11px 0 0; }
  .sp-dd { flex-direction: column; }
  .sp-dd-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; background: rgba(3, 12, 32, .6); }
  .sp-dd.is-open .sp-dd-menu { display: block; }
  .sp-dd:hover .sp-dd-menu { display: none; }
  .sp-dd.is-open:hover .sp-dd-menu { display: block; }
  .sp-top-in { justify-content: flex-end; align-items: center; }
  .sp-burger { order: 2; }
  .sp-top-right { order: 1; flex-direction: row; align-items: center; }
  .sp-status { display: none; }
}
@media (max-width: 760px) {
  .sp-hero { height: 230px; }
  .sp-logo { width: 250px; margin-top: 56px; }
  .sp-hero-txt { font-size: 19px; margin-top: 0; }
  .sp-hero-char { left: auto; right: 0; height: 260px; bottom: -40px; }
  .sp-status { display: none; }
  .sp-search { width: 190px; height: 40px; }
  .sp-main { grid-template-columns: minmax(0, 1fr); margin-top: -10px; }
  .sp-right { grid-template-columns: 1fr; }
  .sp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-news-main { grid-template-columns: 1fr; }
  .sp-news-img { height: 160px; }
  .sp-explore { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-foot-in { flex-direction: column; text-align: center; }
  .sp-left { order: 2; }
  .sp-center { order: 1; }
  .sp-right { order: 3; }
}

/* =====================================================================
   FX - cursor, lightning on hover, electric borders, ki click burst
   (everything here can be removed without breaking the layout)
   ===================================================================== */
@property --sp-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* custom cursor (desktop only) */
@media (hover: hover) and (pointer: fine) {
  body.sp { cursor: url(../images/sparking/cursor.png) 3 2, auto; }
  body.sp a, body.sp button, body.sp [role=button], body.sp label[for], body.sp select, body.sp summary,
  body.sp input[type=submit], body.sp input[type=button], body.sp input[type=checkbox], body.sp input[type=radio],
  body.sp tr[onclick] { cursor: url(../images/sparking/cursor_pointer.png) 3 2, pointer; }
  body.sp input[type=text], body.sp input[type=password], body.sp input[type=email], body.sp input[type=search],
  body.sp input[type=number], body.sp textarea { cursor: text; }
}

/* electric border running around a box on hover */
.sp-fx { position: relative; isolation: isolate; }
.sp-fx::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--sp-a), transparent 0 55%, rgba(85, 217, 255, .2) 62%, #55d9ff 70%, #fff 72%, #55d9ff 74%, transparent 82% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: 0; transition: opacity .2s;
}
.sp-fx:hover::after { opacity: 1; animation: sp-spin 1.6s linear infinite; }
@keyframes sp-spin { to { --sp-a: 360deg; } }

/* lightning bolt flashing over a box on hover */
.sp-zap::before {
  content: ""; position: absolute; z-index: 4; pointer-events: none; top: -12%; right: 6%; width: 46px; height: 124%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 120'%3E%3Cdefs%3E%3Cfilter id='g'%3E%3CfeGaussianBlur stdDeviation='2.2'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M24 0 L12 38 L22 40 L8 78 L18 80 L4 120' fill='none' stroke='%2355d9ff' stroke-width='7' filter='url(%23g)'/%3E%3Cpath d='M24 0 L12 38 L22 40 L8 78 L18 80 L4 120' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0; transform: scaleY(.6); transform-origin: top;
}
.sp-zap:hover::before { animation: sp-zap .55s steps(1, end) 1, sp-flick 2.6s 0.55s steps(1, end) infinite; }
@keyframes sp-zap {
  0% { opacity: 0; transform: scaleY(.3); }
  15% { opacity: 1; transform: scaleY(1); }
  30% { opacity: .2; } 45% { opacity: 1; } 60% { opacity: 0; } 75% { opacity: .9; } 100% { opacity: 0; transform: scaleY(1); }
}
@keyframes sp-flick { 0%, 86%, 100% { opacity: 0; transform: scaleY(1); } 88% { opacity: 1; } 91% { opacity: .1; } 94% { opacity: .8; } }
.sp-zap:hover { box-shadow: 0 0 22px rgba(85, 217, 255, .55), inset 0 0 18px rgba(85, 217, 255, .18); }
.sp-ex.sp-zap:hover .sp-ex-t b { animation: sp-txtflash .55s steps(2, end) 1; }
@keyframes sp-txtflash { 50% { text-shadow: 0 0 4px #fff, 0 0 18px #55d9ff, 0 0 30px #55d9ff; } }

/* gold buttons: shine sweep */
.sp-btn-gold { position: relative; overflow: hidden; }
.sp-btn-gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-20deg);
}
.sp-btn-gold:hover::after { animation: sp-shine .7s ease-out; }
@keyframes sp-shine { to { left: 130%; } }

/* menu: electric underline */
.sp-nav-a { position: relative; }
.sp-nav-a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #55d9ff, #fff, #55d9ff, transparent); box-shadow: 0 0 8px #55d9ff;
  transform: scaleX(0); transition: transform .2s;
}
.sp-nav-a:hover::after, .sp-dd:hover > .sp-nav-a::after { transform: scaleX(1); }
.sp-nav-a.is-on::after { display: none; }

/* header: aura behind Goku + floating logo */
.sp-hero-char::before {
  content: ""; position: absolute; left: 50%; top: 52%; width: 120%; height: 90%; transform: translate(-50%, -50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(85, 217, 255, .55), rgba(8, 124, 255, .25) 55%, transparent 75%);
  animation: sp-aura 2.4s ease-in-out infinite; pointer-events: none;
}
@keyframes sp-aura { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.95); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } }
.sp-logo img { animation: sp-float 5s ease-in-out infinite; }
@keyframes sp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.sp-dot.on { animation: sp-pulse 1.8s ease-in-out infinite; }
@keyframes sp-pulse { 50% { box-shadow: 0 0 2px #33e06a, 0 0 14px 3px rgba(51, 224, 106, .55); } }

/* ki burst on click */
.sp-burst { position: fixed; z-index: 9999; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; pointer-events: none;
  background: #fff; box-shadow: 0 0 8px 2px #55d9ff; animation: sp-burst .5s ease-out forwards; }
.sp-burst.gold { box-shadow: 0 0 8px 2px #ffbf25; }
@keyframes sp-burst { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.sp-ring { position: fixed; z-index: 9999; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none;
  border: 2px solid #55d9ff; box-shadow: 0 0 10px #55d9ff; animation: sp-ring .45s ease-out forwards; }
@keyframes sp-ring { to { transform: scale(5); opacity: 0; } }

/* back to top */
.sp-up { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #1d8dff, #0754c9); border: 1px solid #55d9ff; color: #fff; box-shadow: 0 0 14px rgba(8, 124, 255, .7);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s; }
.sp-up.is-on { opacity: 1; visibility: visible; transform: none; }
.sp-up .sp-i { width: 22px; height: 22px; transform: rotate(-90deg); }

/* language flags + hide Google Translate bar */
.sp-lang { display: flex; gap: 6px; }
.sp-lang a { display: block; width: 30px; height: 20px; border-radius: 3px; overflow: hidden; border: 1px solid var(--sp-line2); opacity: .75; transition: .15s; }
.sp-lang a:hover, .sp-lang a.is-on { opacity: 1; border-color: var(--sp-cyan); box-shadow: 0 0 8px rgba(85, 217, 255, .6); }
.sp-lang svg { display: block; width: 100%; height: 100%; }
.sp-status-row { display: flex; align-items: center; }
.sp-status { white-space: nowrap; }
.sp-search-row { display: flex; align-items: center; gap: 8px; }
.sp-search-row .sp-lang { flex-direction: column; gap: 4px; }
.sp-search-row .sp-lang a { width: 26px; height: 17px; }
body.sp { top: 0 !important; }
.goog-te-banner-frame, .skiptranslate > iframe, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

@media (hover: none) { .sp-fx::after, .sp-zap::before { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .sp-fx:hover::after, .sp-zap:hover::before, .sp-logo img, .sp-hero-char::before, .sp-dot.on { animation: none !important; }
}

/* =====================================================================
   PAGES - one look for every subpage (MyAAC tables, captions, forms, buttons,
   pages from the database). Overrides the older purple page styles.
   ===================================================================== */
:root {
  --wt-bg: #061230; --wt-card: #0b2554; --wt-card2: #081d44; --wt-hover: #12357a; --wt-line: #1d4f9c;
  --wt-head: #04112b; --wt-txt: #eaf3ff; --wt-dim: #9fb5d1; --wt-acc: #ffbf25; --wt-acc-d: #f08a00; --wt-acc2: #55d9ff;
}
.sp-content .main-content { font: 14px/1.5 var(--sp-font); }
.sp-content .main-content .wp { font: 14px/1.5 var(--sp-font); }

/* one heading font for everything */
.main-content h1, .main-content h2, .main-content h3, .main-content h4,
.main-content .wp-h, .main-content .wp-btn, .main-content .wp-card-title, .main-content .wp-table th,
.main-content .wp-fact b, .main-content .wp-rew-title, .main-content .wp-back a, .main-content .wp-sched b,
.main-content .wp-tile span, .main-content .CaptionInnerContainer .Text, .main-content [class^="ts_"] > label,
.main-content tr[background*="tablebg1"] > td, .main-content td.niebieska {
  font-family: var(--sp-head) !important; font-weight: 500 !important; letter-spacing: .4px;
}
.main-content h1, .main-content h2 { color: #fff !important; font-size: 34px !important; line-height: 1.05; margin: 6px 0 12px; text-shadow: 0 0 12px rgba(0, 140, 255, .7) !important; }
.main-content h3 { color: var(--sp-gold) !important; font-size: 26px !important; margin: 8px 0; text-shadow: none; }
.main-content h4 { color: var(--sp-cyan); font-size: 21px !important; }
.main-content .wp-h { font-size: 26px !important; background: linear-gradient(90deg, rgba(8, 124, 255, .35), rgba(3, 12, 32, .2)) !important; border-left-color: var(--sp-cyan) !important; color: #fff !important; }
.main-content .wp-h small { font-family: var(--sp-font); }

/* page title used by the rebuilt templates */
.sp-title { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 4px 0 10px; border-bottom: 1px solid var(--sp-line2); }
.sp-title .sp-i { width: 34px; height: 34px; color: var(--sp-gold); }
.sp-title h1 { margin: 0 !important; font-size: 40px !important; }
.sp-title small { margin-left: auto; color: var(--sp-dim); font-size: 14px; }

/* old picture banners at the top of pages: same frame as the panels */
.main-content img[src*="/baners/"]:not([src*="/baners/events/"]) { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--sp-line); box-shadow: 0 0 16px rgba(0, 140, 255, .35); }

/* MyAAC box captions -> panel header look */
.main-content .CaptionInnerContainer {
  background: linear-gradient(90deg, rgba(8, 124, 255, .4), rgba(3, 12, 32, .35)) !important;
  border: 1px solid var(--sp-line) !important; border-bottom: 0 !important; border-left: 1px solid var(--sp-line) !important;
  border-radius: 10px 10px 0 0 !important; padding: 9px 14px 7px 44px !important;
}
.main-content .CaptionInnerContainer::before {
  content: ""; position: absolute; left: 13px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='b' cx='35%25' cy='30%25' r='70%25'%3E%3Cstop offset='0' stop-color='%23fff3b0'/%3E%3Cstop offset='.45' stop-color='%23ffb21e'/%3E%3Cstop offset='1' stop-color='%23e46a00'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='10' fill='url(%23b)'/%3E%3Cpath d='M12 7.2l1.3 2.9 3.1.3-2.4 2 .8 3.1-2.8-1.7-2.8 1.7.8-3.1-2.4-2 3.1-.3z' fill='%23d1261b'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 5px rgba(255, 170, 30, .6));
}
.main-content .CaptionInnerContainer .Text { color: #fff !important; font-size: 24px !important; text-transform: none !important; }
.main-content .Table1, .main-content .Table2, .main-content .Table3, .main-content .Table4, .main-content .Table5 {
  background: rgba(3, 12, 32, .55) !important; border-color: var(--sp-line) !important; border-radius: 0 0 10px 10px !important;
}

/* rows coloured with bgcolor (config.ini colours) */
.main-content tr[bgcolor="#04112b"] > td, .main-content tr[bgcolor="#04112B"] > td, .main-content tr.sp-th > td,
.main-content tr[bgcolor="#1e1e2d"] > td, .main-content tr[bgcolor="#1E1E2D"] > td, .main-content tr[style*="#1e1e2d"] > td {
  background: linear-gradient(180deg, #0a2a63, #061a40) !important; color: var(--sp-gold) !important;
  font-family: var(--sp-head) !important; font-size: 19px !important; font-weight: 500 !important; letter-spacing: .4px; text-transform: uppercase;
  border-color: var(--sp-line) !important;
}
.main-content tr[bgcolor="#04112b"] > td b, .main-content tr[bgcolor="#04112b"] > td a, .main-content tr[bgcolor="#04112b"] > td font { color: var(--sp-gold) !important; font-weight: 500 !important; }
.main-content tr[bgcolor="#0b2554"] > td, .main-content tr[bgcolor="#0B2554"] > td, .main-content tr[bgcolor="#2e3145"] > td { background: rgba(8, 29, 68, .92) !important; }
.main-content tr[bgcolor="#0e2f66"] > td, .main-content tr[bgcolor="#0E2F66"] > td, .main-content tr[bgcolor="#373b53"] > td { background: rgba(11, 37, 84, .92) !important; }
.main-content tr[bgcolor]:not([bgcolor="#04112b"]):not([bgcolor="#1e1e2d"]):hover > td { background: var(--wt-hover) !important; border-color: var(--sp-cyan) !important; }
.main-content td[bgcolor="#04112b"], .main-content td[style*="#04112b"], .main-content td[bgcolor="#1e1e2d"], .main-content td[style*="#1e1e2d"] { background: linear-gradient(180deg, #0a2a63, #061a40) !important; color: var(--sp-gold) !important; font: 500 19px/1.2 var(--sp-head) !important; letter-spacing: .4px; text-transform: uppercase; padding: 7px 10px !important; border-radius: 7px; }
.main-content td[bgcolor="#04112b"] b, .main-content td[bgcolor="#04112b"] a, .main-content td[bgcolor="#1e1e2d"] b, .main-content td[bgcolor="#1e1e2d"] span, .main-content td[style*="#1e1e2d"] div { color: var(--sp-gold) !important; font-weight: 500 !important; }
.main-content td[bgcolor="#0b2554"], .main-content td[style*="#0b2554"], .main-content td[bgcolor="#2e3145"], .main-content td[style*="#2e3145"] { background: rgba(8, 29, 68, .92) !important; }
.main-content td[bgcolor="#0e2f66"], .main-content td[style*="#0e2f66"], .main-content td[bgcolor="#373b53"], .main-content td[style*="#373b53"] { background: rgba(11, 37, 84, .92) !important; }
.main-content td.white, .main-content .white { color: var(--sp-gold) !important; }
.main-content table .white b { font-weight: 500; }
.main-content tr[background] { background-image: none !important; }
/* character equipment: keep the silhouette picture behind the items, centred like the item slots */
.main-content table[background*="eq.png"] { background-image: url(../../../images/wono/eq.png) !important; background-repeat: no-repeat !important; background-position: left center !important; border-spacing: 0 !important; }
.main-content table[background*="eq.png"] > tbody > tr > td { padding: 0 !important; border: 0 !important; background: none !important; }
.main-content table[background*="eq.png"] img { filter: drop-shadow(0 0 4px rgba(85, 217, 255, .6)); }
.main-content .mystyle { border: 0 !important; }
.main-content table a { color: var(--sp-cyan); }
.main-content table a:hover { color: #fff; }

/* bootstrap tables */
.main-content .table { background: transparent; border-collapse: separate; border-spacing: 0 3px; }
.main-content .table > thead > tr > th, .main-content .table > tbody > tr > th {
  background: linear-gradient(180deg, #0a2a63, #061a40); color: var(--sp-gold); border: 0;
  font: 500 19px/1.1 var(--sp-head); letter-spacing: .4px; text-transform: uppercase;
}
.main-content .table > tbody > tr > td { background: rgba(8, 29, 68, .85); border-top: 1px solid var(--sp-line2); border-bottom: 1px solid var(--sp-line2); }
.main-content .table-striped > tbody > tr:nth-of-type(odd) > td { background: rgba(11, 37, 84, .85); }
.main-content .table-hover > tbody > tr:hover > td { background: var(--wt-hover); }

/* buttons inside pages: gold primary, blue secondary */
.main-content .btn, .main-content input[type="submit"], .main-content input[type="button"], .main-content button:not(.wp-btn):not(.cr-tab):not(.mo-chip) {
  font-family: var(--sp-head) !important; font-size: 19px !important; font-weight: 500 !important; letter-spacing: .4px;
  padding: 5px 18px !important; border-radius: 8px !important; line-height: 1.2;
}
.main-content .btn-primary, .main-content input[type="submit"], .main-content button[type="submit"] {
  background: linear-gradient(180deg, #ffd34a, #ff9a12 60%, #f07b00) !important; border: 1px solid #ffd96b !important; color: #3a1d00 !important;
  box-shadow: 0 0 12px rgba(255, 160, 20, .45), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
}
.main-content .btn-default, .main-content .btn-info, .main-content .btn-secondary, .main-content input[type="button"], .main-content a.btn:not(.btn-primary):not(.btn-danger):not(.btn-success) {
  background: linear-gradient(180deg, #1d8dff, #0754c9) !important; border: 1px solid #3aa0ff !important; color: #fff !important;
  box-shadow: 0 0 10px rgba(8, 124, 255, .45) !important;
}
.main-content .btn-success { background: linear-gradient(180deg, #3ee072, #149a45) !important; border-color: #6ff29a !important; color: #03240f !important; }
.main-content .btn-danger { background: linear-gradient(180deg, #ff6b6b, #c62828) !important; border-color: #ff9a9a !important; color: #fff !important; }

/* form fields */
.main-content input:not([type]), .main-content input[type="text"], .main-content input[type="password"], .main-content input[type="email"],
.main-content input[type="number"], .main-content input[type="search"], .main-content select, .main-content textarea, .main-content .form-control {
  background: rgba(3, 12, 32, .9) !important; color: #fff !important; border: 1px solid var(--sp-line) !important; border-radius: 8px !important;
  padding: 6px 10px !important; min-height: 36px; font-size: 14px;
}
.main-content input:focus, .main-content select:focus, .main-content textarea:focus, .main-content .form-control:focus {
  border-color: var(--sp-cyan) !important; box-shadow: 0 0 10px rgba(85, 217, 255, .4) !important;
}
.main-content input[type="checkbox"], .main-content input[type="radio"] { accent-color: var(--sp-gold); width: 16px; height: 16px; vertical-align: -3px; }
.main-content label, .main-content .LabelV { color: var(--sp-txt) !important; }
.main-content .LabelV { color: var(--sp-cyan) !important; }

/* bootstrap bits */
.main-content .panel, .main-content .well { background: rgba(3, 12, 32, .6); border: 1px solid var(--sp-line); border-radius: 10px; box-shadow: none; color: var(--sp-txt); }
.main-content .panel-heading { background: linear-gradient(90deg, rgba(8, 124, 255, .4), rgba(3, 12, 32, .35)) !important; border-color: var(--sp-line) !important; color: #fff !important; font: 500 22px/1.1 var(--sp-head); }
.main-content .alert { border-radius: 10px; border: 1px solid; }
.main-content .alert-success { background: rgba(20, 154, 69, .18); border-color: #3ee072; color: #c9ffd9; }
.main-content .alert-danger, .main-content .alert-error { background: rgba(198, 40, 40, .2); border-color: #ff6b6b; color: #ffd0d0; }
.main-content .alert-info, .main-content .alert-warning { background: rgba(8, 124, 255, .18); border-color: var(--sp-cyan); color: #dff6ff; }
.main-content .label { border-radius: 6px; font-weight: 500; }
.main-content .label-primary { background: var(--sp-blue); } .main-content .label-danger { background: #c62828; } .main-content .label-success { background: #149a45; }
.main-content .pagination > li > a, .main-content .pagination > li > span { background: rgba(8, 29, 68, .9); border-color: var(--sp-line); color: var(--sp-txt); }
.main-content .pagination > .active > a, .main-content .pagination > li > a:hover { background: var(--sp-blue); border-color: var(--sp-cyan); color: #fff; }
.main-content hr { border-color: var(--sp-line2); }
.main-content .nav-tabs > li > a, .main-content .nav-pills > li > a { font: 500 19px/1 var(--sp-head); }
.main-content .nav-pills > li.active > a, .main-content .nav-pills > li > a:hover { background: var(--sp-blue); }

/* MyAAC message boxes (success / errors) */
.main-content .SmallBox, .main-content .ErrorBox, .main-content .InfoBox { background: rgba(8, 124, 255, .15) !important; border: 1px solid var(--sp-line) !important; border-radius: 10px; color: var(--sp-txt); }

/* rebuilt templates: server info, highscores, login */
.sp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.sp-box { background: rgba(3, 12, 32, .55); border: 1px solid var(--sp-line); border-radius: 10px; padding: 12px 14px; }
.sp-box h3 { margin-top: 0 !important; }
.sp-box .wp-table td { text-align: left; }
.sp-box .wp-table td:last-child { text-align: right; }
.sp-links-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }
.sp-hs-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 12px; }
.sp-hs-type { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--sp-line2); background: rgba(8, 29, 68, .85); color: var(--sp-txt) !important; font: 500 17px/1 var(--sp-head); transition: .15s; min-width: 0; overflow: hidden; white-space: nowrap; }
.sp-hs-type img { width: 30px; height: 30px; object-fit: contain; }
.sp-hs-type:hover { border-color: var(--sp-cyan); background: rgba(8, 124, 255, .25); }
.sp-hs-type.is-on { background: linear-gradient(180deg, #1d8dff, #0754c9); border-color: var(--sp-cyan); color: #fff !important; box-shadow: 0 0 12px rgba(8, 124, 255, .6); }
.sp-hs-name { color: #fff; font-weight: bold; }
.sp-hs-name.is-online { color: #5dff8f; }
.sp-hs-on { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: #33e06a; box-shadow: 0 0 6px #33e06a; vertical-align: 1px; }
.sp-rank-no { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 50%; background: rgba(3, 12, 32, .8); border: 1px solid var(--sp-line); color: #fff; font: 500 18px/1 var(--sp-head); }
.sp-rank-no.r1 { background: linear-gradient(180deg, #ffe27a, #e7a400); color: #3a1d00; border-color: #ffe9a0; box-shadow: 0 0 10px rgba(255, 200, 40, .7); }
.sp-rank-no.r2 { background: linear-gradient(180deg, #f2f6ff, #9aa9c4); color: #1b2236; border-color: #fff; }
.sp-rank-no.r3 { background: linear-gradient(180deg, #ffb27a, #b8642a); color: #2a1200; border-color: #ffd0a8; }
.sp-login { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
.sp-login .sp-box p { color: var(--sp-dim); margin: 0 0 10px; }
.main-content .sp-lbl, .sp-lbl { display: block; margin: 8px 0 4px; color: var(--sp-cyan) !important; font-weight: bold; }
.main-content .sp-lbl.redd { color: #ff8080 !important; }
.sp-login input[type=text], .sp-login input[type=password] { width: 100%; }
.sp-check { display: flex; align-items: center; gap: 8px; margin: 12px 0; font-weight: normal; }
.sp-wide { display: block !important; width: 100%; text-align: center; margin-top: 6px; }
.sp-login-side h3 + p { margin-bottom: 8px; }
.sp-login-side .btn + h3 { margin-top: 18px !important; }
@media (max-width: 760px) { .sp-grid2, .sp-login { grid-template-columns: 1fr; } }

/* single news / archive */
.sp-newsbox { border-radius: 12px; background: linear-gradient(180deg, rgba(10, 33, 71, .75), rgba(3, 12, 32, .7)); box-shadow: var(--sp-glow); }
.sp-newsbox-h { padding: 14px 18px; gap: 12px; }
.sp-newsbox-h h3 { font-size: 34px !important; color: #fff !important; text-shadow: 0 0 12px rgba(0, 140, 255, .8); margin: 0 !important; }
.sp-newsbox-h small { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-newsbox-meta { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; background: rgba(3, 12, 32, .7); border: 1px solid var(--sp-line2); color: var(--sp-txt); font-size: 13px; }
.sp-newsbox-meta .sp-i { width: 14px; height: 14px; color: var(--sp-orange); }
.sp-newsbox-b { padding: 16px 20px 20px; font-size: 15px; line-height: 1.65; }
.sp-newsbox-b h2 { font-size: 32px !important; margin: 4px 0 14px !important; }
.sp-newsbox-b h3 { font-size: 25px !important; margin: 18px 0 6px !important; padding-left: 12px; border-left: 3px solid var(--sp-gold); }
.sp-newsbox-b p { margin: 0 0 10px; }
.sp-newsbox-b strong, .sp-newsbox-b b { color: #fff; }
.sp-newsbox-b a { color: var(--sp-cyan) !important; text-decoration: none !important; border-bottom: 1px dashed rgba(85, 217, 255, .6); }
.sp-newsbox-b a:hover { color: #fff !important; }
.sp-newsbox-b img { border-radius: 8px; }
.sp-newsbox-b ul { padding-left: 20px; }
.sp-newsbox-b li { margin: 3px 0; }

/* character page: avatar above the equipment */
.sp-char-right { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 6px; }
.sp-char-ava { position: relative; display: inline-block; }
.sp-char-ava > img { display: block; max-width: 200px; height: auto; border-radius: 10px; border: 2px solid var(--sp-gold); box-shadow: 0 0 16px rgba(255, 170, 30, .45); }
.sp-char-guild { position: absolute; right: -14px; bottom: -14px; }
.sp-char-guild img { border-radius: 8px; filter: drop-shadow(0 0 6px rgba(0, 0, 0, .7)); }
.sp-eq { position: relative; width: 312px; height: 575px; flex: none; background: url(../../../images/wono/eq.png) no-repeat center top; }
.sp-eq-slot { position: absolute; }
.sp-eq-slot img { filter: drop-shadow(0 0 4px rgba(85, 217, 255, .6)); }

/* download page */
.sp-dl-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: center; padding: 22px; margin-bottom: 14px; border-radius: 14px; border: 1px solid var(--sp-line);
  background: radial-gradient(420px 240px at 25% 50%, rgba(8, 124, 255, .45), transparent 70%), linear-gradient(180deg, rgba(10, 33, 71, .85), rgba(3, 12, 32, .85)); box-shadow: var(--sp-glow); }
.sp-dl-logo { width: 100%; max-width: 380px; height: auto; justify-self: center; filter: drop-shadow(0 0 18px rgba(0, 150, 255, .6)); animation: sp-float 5s ease-in-out infinite; }
.sp-dl-info h2 { margin: 0 0 6px !important; }
.sp-dl-info p { color: var(--sp-dim); margin: 0 0 16px; }
.sp-dl-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 14px; padding: 12px 26px 12px 20px; border-radius: 12px;
  background: linear-gradient(180deg, #ffd34a, #ff9a12 60%, #f07b00); border: 1px solid #ffd96b; color: #3a1d00 !important;
  box-shadow: 0 0 22px rgba(255, 160, 20, .55), inset 0 1px 0 rgba(255, 255, 255, .55); transition: transform .15s, filter .15s; }
.sp-dl-btn:hover { transform: translateY(-2px); filter: brightness(1.08); color: #3a1d00 !important; }
.sp-dl-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-20deg); animation: sp-shine 3.2s ease-in-out infinite; }
.sp-dl-btn svg { width: 34px; height: 34px; flex: none; }
.sp-dl-btn b { display: block; font: 500 30px/1 var(--sp-head); letter-spacing: .5px; }
.sp-dl-btn small { display: block; font-size: 13px; opacity: .8; }
.sp-dl-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sp-dl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; background: rgba(3, 12, 32, .75); border: 1px solid var(--sp-line2); font-size: 13px; }
.sp-dl-chip svg { width: 15px; height: 15px; color: var(--sp-orange); }
.sp-dl-chip b { color: #fff; }
.sp-dl-sum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border-radius: 10px; background: rgba(3, 12, 32, .6); border: 1px solid var(--sp-line2); }
.sp-dl-sum span { color: var(--sp-cyan); font-weight: bold; }
.sp-dl-sum code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: none; color: var(--sp-txt); font-size: 12px; padding: 0; }
.sp-dl-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.sp-dl-step { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; background: rgba(8, 29, 68, .85); border: 1px solid var(--sp-line2); }
.sp-dl-step b { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(180deg, #1d8dff, #0754c9); border: 1px solid var(--sp-cyan); color: #fff; font: 500 20px/1 var(--sp-head); }
@media (max-width: 1100px) { .sp-dl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .sp-dl-hero { grid-template-columns: 1fr; text-align: center; } .sp-dl-meta { justify-content: center; } .sp-dl-steps { grid-template-columns: 1fr; } }
.main-content td.sp-char-left-ava { text-align: center; padding: 4px 0 14px !important; }
.sp-eq-slot { width: 32px; height: 32px; line-height: 0; }
.sp-eq-slot img { display: block; width: 32px; height: 32px; }

/* techniques */
.sp-tech-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-bottom: 16px; }
.sp-tech-voc { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 3px 4px !important; border-radius: 9px !important; cursor: pointer;
  background: rgba(8, 29, 68, .85); border: 1px solid var(--sp-line2); color: var(--sp-txt) !important; font: 500 15px/1 var(--sp-head); transition: .15s; text-decoration: none !important; }
.sp-tech-voc img { width: 56px; height: 56px; object-fit: cover; border-radius: 7px; }
.sp-tech-voc span { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.sp-tech-voc:hover { border-color: var(--sp-cyan); transform: translateY(-2px); color: #fff !important; }
.sp-tech-voc.is-on { background: linear-gradient(180deg, #ffd34a, #f08a00); border-color: #ffe9a0; color: #3a1d00 !important; box-shadow: 0 0 14px rgba(255, 170, 30, .6); }
.sp-tech-head { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; margin-bottom: 12px; border-radius: 12px; border: 1px solid var(--sp-line);
  background: radial-gradient(300px 180px at 10% 50%, rgba(8, 124, 255, .4), transparent 70%), linear-gradient(180deg, rgba(10, 33, 71, .85), rgba(3, 12, 32, .85)); }
.sp-tech-ava { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sp-tech-ava img { width: 160px; height: 160px; object-fit: cover; border-radius: 12px; border: 2px solid var(--sp-gold); box-shadow: 0 0 16px rgba(255, 170, 30, .45); }
.sp-tech-ava b { font: 500 30px/1 var(--sp-head); color: #fff; text-shadow: 0 0 10px rgba(0, 140, 255, .8); }
.sp-tech-forms { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sp-tech-row { display: flex; align-items: flex-end; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(3, 12, 32, .55); border: 1px solid var(--sp-line2); }
.sp-tech-tag { flex: none; width: 132px; align-self: center; padding: 4px 8px; border-radius: 7px; text-align: center; font: 500 17px/1 var(--sp-head); white-space: nowrap; color: #fff;
  background: linear-gradient(180deg, #1d8dff, #0754c9); border: 1px solid var(--sp-cyan); }
.sp-tech-tag.red { background: linear-gradient(180deg, #ff5a5a, #b31414); border-color: #ff9a9a; }
.sp-tech-tag.gold { background: linear-gradient(180deg, #ffd34a, #f08a00); border-color: #ffe9a0; color: #3a1d00; }
.sp-tech-sprites { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 8px; min-width: 0; }
.sp-tech-sprites figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sp-tech-sprites img { max-height: 72px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.sp-tech-sprites figcaption { min-width: 34px; padding: 1px 6px; border-radius: 6px; background: rgba(8, 29, 68, .95); border: 1px solid var(--sp-line2); text-align: center; font: 500 16px/1.1 var(--sp-head); color: var(--sp-gold); }
.sp-tech-outfits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
.sp-tech-outfits h3 { font-size: 21px !important; margin: 0 0 6px !important; }
.sp-tech-h { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px !important; }
.sp-tech-h small { padding: 1px 8px; border-radius: 10px; background: rgba(8, 124, 255, .3); color: var(--sp-txt); font: 500 15px/1.3 var(--sp-head); }
.sp-tech-list { display: flex; flex-direction: column; gap: 6px; }
.sp-tech-spell { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 10px;
  background: rgba(8, 29, 68, .88); border: 1px solid var(--sp-line2); transition: border-color .15s, background .15s; }
.sp-tech-spell:hover { border-color: var(--sp-cyan); background: rgba(18, 53, 122, .9); }
.sp-tech-ico { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--sp-line); background: rgba(3, 12, 32, .8); }
.sp-tech-name { display: flex; align-items: center; gap: 8px; }
.sp-tech-name b { color: #fff; font: 500 21px/1.1 var(--sp-head); letter-spacing: .3px; text-transform: capitalize; }
.sp-tech-pas { padding: 0 7px; border-radius: 8px; background: rgba(255, 191, 37, .2); border: 1px solid rgba(255, 191, 37, .5); color: var(--sp-gold); font-size: 11px; text-transform: uppercase; }
.sp-tech-desc { color: #7dffa6; font-size: 13px; line-height: 1.4; }
.sp-tech-stats { display: flex; gap: 4px; }
.sp-tech-stats span { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 3px 4px; border-radius: 7px; background: rgba(3, 12, 32, .75); border: 1px solid var(--sp-line2); color: #fff; font: 500 18px/1 var(--sp-head); }
.sp-tech-stats i { font: normal 10px/1.3 var(--sp-font); color: var(--sp-dim); text-transform: uppercase; }
@media (max-width: 1100px) { .sp-tech-spell { grid-template-columns: 44px minmax(0, 1fr); } .sp-tech-stats { grid-column: 1 / -1; flex-wrap: wrap; } }
@media (max-width: 760px) { .sp-tech-head { grid-template-columns: 1fr; } .sp-tech-row { flex-direction: column; align-items: flex-start; } .sp-tech-tag { width: auto; } }

/* items */
.sp-it-tools { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 8px; margin-bottom: 8px; border-radius: 10px; background: rgba(4, 17, 43, .95); border: 1px solid var(--sp-line); box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.sp-it-search { flex: 1; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 10px; border-radius: 8px; background: rgba(3, 12, 32, .9); border: 1px solid var(--sp-line); }
.sp-it-search:focus-within { border-color: var(--sp-cyan); box-shadow: 0 0 10px rgba(85, 217, 255, .4); }
.sp-it-search svg { width: 18px; height: 18px; flex: none; color: var(--sp-cyan); }
.main-content .sp-it-search input { flex: 1; min-width: 0; border: 0 !important; background: none !important; box-shadow: none !important; padding: 8px 0 !important; font-size: 15px; }
.sp-it-count { color: var(--sp-dim); white-space: nowrap; font-size: 13px; }
.sp-it-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.main-content .sp-it-cat { font-size: 17px !important; padding: 5px 11px; }
.sp-it-table th { cursor: pointer; user-select: none; white-space: nowrap; }
.sp-it-table th[data-sp-sort="asc"]::after { content: " \25B2"; font-size: 11px; }
.sp-it-table th[data-sp-sort="desc"]::after { content: " \25BC"; font-size: 11px; }
.sp-it-table .sp-it-c-img { width: 52px; }
.sp-it-table td img { display: block; margin: 0 auto; max-width: 32px; max-height: 32px; }
.sp-it-table .sp-it-name { text-align: left; font-weight: bold; }
.sp-it-table .sp-it-name a { color: #fff; }
.sp-it-table .sp-it-name a:hover { color: var(--sp-cyan); }
.sp-it-table .sp-it-desc { text-align: left; color: #7dffa6; font-size: 13px; }
.sp-it-table .sp-it-c-name, .sp-it-table .sp-it-c-desc { text-align: left; }

/* crafting: same blue look as monsters, colour per profession */
#wodbo-crafting {
  --cr-bg: #061230 !important; --cr-card: rgba(8, 29, 68, .9) !important; --cr-card2: #12357a !important; --cr-line: #1d4f9c !important; --cr-head: rgba(4, 17, 43, .95) !important;
  --cr-txt: #eaf3ff !important; --cr-dim: #9fb5d1 !important; --cr-acc: #ffbf25 !important; --cr-acc2: #55d9ff !important;
  max-width: none !important; font: 14px/1.45 var(--sp-font) !important;
}
#wodbo-crafting .cr-banner { border-radius: 10px; border: 1px solid var(--sp-line); box-shadow: 0 0 16px rgba(0, 140, 255, .35); }
#wodbo-crafting .cr-tools { border-color: var(--sp-line) !important; }
#wodbo-crafting .cr-tab { font: 500 19px/1 var(--sp-head) !important; padding: 7px 10px !important; border-radius: 8px !important; box-shadow: none !important; }
#wodbo-crafting .cr-tab.is-on { background: linear-gradient(180deg, #ffd34a, #f08a00) !important; border-color: #ffe9a0 !important; color: #3a1d00 !important; box-shadow: 0 0 12px rgba(255, 170, 30, .5) !important; }
#wodbo-crafting .cr-tab:not(.is-on) { background: rgba(8, 29, 68, .9) !important; color: var(--sp-txt) !important; border: 1px solid var(--sp-line2) !important; }
#wodbo-crafting .cr-tab:not(.is-on):hover { border-color: var(--sp-cyan) !important; }
#wodbo-crafting .cr-search, #wodbo-crafting .cr-level { font-size: 14px !important; }
#wodbo-crafting .cr-h { font: 500 24px/1 var(--sp-head) !important; text-transform: none !important; letter-spacing: .4px; color: #fff !important;
  background: linear-gradient(90deg, rgba(8, 124, 255, .4), rgba(3, 12, 32, .3)) !important; border: 1px solid var(--sp-line2); border-left: 4px solid var(--cr-prof, var(--sp-gold)) !important; border-radius: 8px !important; }
#wodbo-crafting .cr-n { font: 500 15px/1.3 var(--sp-head) !important; background: var(--cr-prof, var(--sp-blue)) !important; color: #031020 !important; }
#wodbo-crafting .cr-card { background: rgba(8, 29, 68, .88) !important; border-color: var(--sp-line2) !important; border-left: 3px solid var(--cr-prof, var(--sp-line)) !important; border-radius: 10px !important; }
#wodbo-crafting .cr-card:hover { border-color: var(--sp-cyan) !important; box-shadow: 0 6px 14px rgba(0, 0, 0, .4), 0 0 12px rgba(85, 217, 255, .25); }
#wodbo-crafting .cr-ico { background: radial-gradient(circle at 50% 60%, rgba(8, 124, 255, .3), rgba(3, 12, 32, .95) 70%) !important; border-color: var(--sp-line) !important; }
#wodbo-crafting a.cr-res .cr-ico { border-color: var(--cr-prof, var(--sp-gold)) !important; box-shadow: 0 0 12px color-mix(in srgb, var(--cr-prof, #ffbf25) 55%, transparent) !important; }
#wodbo-crafting a.cr-res .cr-nm { font: 500 18px/1.05 var(--sp-head) !important; color: #fff !important; }
#wodbo-crafting a.cr-res .cr-cnt { color: var(--sp-gold) !important; }
#wodbo-crafting .cr-cnt { color: var(--sp-cyan) !important; }
#wodbo-crafting .cr-nm { color: var(--sp-dim) !important; font-size: 11px !important; }
#wodbo-crafting .cr-arrow { color: var(--cr-prof, var(--sp-gold)) !important; text-shadow: 0 0 8px currentColor; }
#wodbo-crafting .cr-cost { color: #ffd76a !important; background: rgba(3, 12, 32, .8) !important; border: 1px solid rgba(255, 191, 37, .45); font-weight: bold; }
#wodbo-crafting [data-prof="alchemist"] { --cr-prof: #3ee072; }
#wodbo-crafting [data-prof="armorsmith"] { --cr-prof: #55d9ff; }
#wodbo-crafting [data-prof="enchanter"] { --cr-prof: #c07bff; }
#wodbo-crafting [data-prof="jeweller"] { --cr-prof: #ffbf25; }
#wodbo-crafting [data-prof="weaponsmith"] { --cr-prof: #ff6b6b; }
#wodbo-crafting .cr-tab[data-prof="alchemist"]:not(.is-on) { box-shadow: inset 0 -3px 0 #3ee072 !important; }
#wodbo-crafting .cr-tab[data-prof="armorsmith"]:not(.is-on) { box-shadow: inset 0 -3px 0 #55d9ff !important; }
#wodbo-crafting .cr-tab[data-prof="enchanter"]:not(.is-on) { box-shadow: inset 0 -3px 0 #c07bff !important; }
#wodbo-crafting .cr-tab[data-prof="jeweller"]:not(.is-on) { box-shadow: inset 0 -3px 0 #ffbf25 !important; }
#wodbo-crafting .cr-tab[data-prof="weaponsmith"]:not(.is-on) { box-shadow: inset 0 -3px 0 #ff6b6b !important; }
#wodbo-crafting .cr-card { grid-template-columns: 170px 26px 1fr !important; }
#wodbo-crafting a.cr-res { width: 160px !important; }
/* techniques: compact character picker */
.sp-tech-pick { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)) !important; gap: 4px !important; margin-bottom: 12px !important; }
.sp-tech-voc { padding: 3px 2px 2px !important; gap: 1px !important; font-size: 12px !important; border-radius: 7px !important; }
.sp-tech-voc img { width: 44px !important; height: 44px !important; border-radius: 6px !important; }
.sp-tech-voc:hover { transform: translateY(-1px) !important; }

/* big DOWNLOAD button in the left column */
.sp-dlbtn { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--sp-r); overflow: hidden;
  background: linear-gradient(180deg, #ffd34a, #ff9a12 60%, #f07b00); border: 1px solid #ffe9a0; color: #3a1d00 !important;
  box-shadow: 0 0 20px rgba(255, 160, 20, .55), inset 0 1px 0 rgba(255, 255, 255, .6); transition: transform .15s, filter .15s; }
.sp-dlbtn:hover { transform: translateY(-2px); filter: brightness(1.08); color: #3a1d00 !important; }
.sp-dlbtn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-20deg); animation: sp-shine 3.4s ease-in-out infinite; }
.sp-dlbtn-ico { flex: none; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(58, 29, 0, .15); border: 2px solid rgba(58, 29, 0, .35); animation: sp-dlpulse 2s ease-in-out infinite; }
.sp-dlbtn-ico .sp-i { width: 26px; height: 26px; }
.sp-dlbtn-txt b { display: block; font: 500 30px/.9 var(--sp-head); letter-spacing: .5px; white-space: nowrap; text-transform: uppercase; }
.sp-dlbtn-txt small { display: block; font-size: 13px; font-weight: bold; opacity: .75; }
@keyframes sp-dlpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); } 50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .sp-dlbtn::after, .sp-dlbtn-ico { animation: none; } }
/* techniques: header layout v2 (avatar + fusion left, forms right, tags on the box border) */
.sp-tech-head { align-items: start !important; padding: 16px 14px 14px !important; }
.sp-tech-side { display: flex; flex-direction: column; gap: 20px; }
.sp-tech-forms { gap: 20px !important; padding-top: 10px; }
.sp-tech-box { position: relative; padding: 24px 10px 10px; border-radius: 10px; background: rgba(3, 12, 32, .55); border: 1px solid var(--sp-line2); }
.sp-tech-box > .sp-tech-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); width: auto !important; min-width: 130px; padding: 5px 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.sp-tech-box .sp-tech-sprites { justify-content: center; }
.sp-tech-side .sp-tech-box { margin-top: 4px; }
.sp-tech-side .sp-tech-box > .sp-tech-tag { min-width: 0; font-size: 15px !important; }
.sp-tech-special { margin: 22px 0 12px; padding-top: 26px; }
.sp-tech-special .sp-tech-sprites img { max-height: 80px; }
.sp-tech-ava img { width: 170px !important; height: 170px !important; }

/* quests: cards with icons */
.sp-q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.sp-q-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(8, 29, 68, .9); border: 1px solid var(--sp-line2); color: var(--sp-txt) !important; transition: transform .15s, border-color .15s, background .15s; }
.sp-q-card:hover { transform: translateY(-2px); border-color: var(--sp-cyan); background: rgba(18, 53, 122, .92); }
.sp-q-ico { flex: none; display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 5px;
  background: radial-gradient(circle, rgba(8, 124, 255, .5), rgba(3, 12, 32, .95) 70%); box-shadow: 0 0 12px rgba(255, 170, 30, .4); }
.sp-q-ico img { image-rendering: pixelated; }
.sp-q-ico img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.sp-q-ico.big { width: 60px; height: 60px; border-radius: 6px; }
.sp-q-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sp-q-body b { color: #fff; font: 500 20px/1 var(--sp-head); letter-spacing: .3px; }
.sp-q-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12px; }
.sp-q-lv { padding: 1px 8px; border-radius: 10px; background: linear-gradient(180deg, #ffd34a, #f08a00); color: #3a1d00; font-weight: bold; }
.sp-q-exp { color: var(--sp-dim); }
.sp-q-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--sp-line2); }
.sp-q-head small a { color: var(--sp-dim) !important; font-size: 13px; }
.sp-q-head h1 { margin: 2px 0 0 !important; font-size: 40px !important; }

/* clickable picture banners (Missions and other pages): aura + lightning + shine on hover */
.main-content a:has(> img[src*="/baners/"]):not(.wp-tile):not(.sp-ex) {
  position: relative; display: inline-block; vertical-align: middle; border-radius: 10px; overflow: hidden; isolation: isolate; margin: 3px 0;
  box-shadow: 0 0 0 1px var(--sp-line2), 0 4px 12px rgba(0, 0, 0, .4); transition: transform .18s ease, box-shadow .18s ease;
}
.main-content a:has(> img[src*="/baners/"]):not(.wp-tile):not(.sp-ex) > img { display: block; max-width: 100%; height: auto; border: 0 !important; box-shadow: none !important; border-radius: 10px; transition: filter .18s, transform .3s; }
.main-content a:has(> img[src*="/baners/"]):not(.wp-tile):not(.sp-ex)::before {
  content: ""; position: absolute; z-index: 3; top: -15%; left: 72%; width: 40px; height: 130%; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 120'%3E%3Cdefs%3E%3Cfilter id='g'%3E%3CfeGaussianBlur stdDeviation='2.2'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M24 0 L12 38 L22 40 L8 78 L18 80 L4 120' fill='none' stroke='%2355d9ff' stroke-width='7' filter='url(%23g)'/%3E%3Cpath d='M24 0 L12 38 L22 40 L8 78 L18 80 L4 120' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0; transform: scaleY(.4) rotate(12deg); transform-origin: top;
}
.main-content a:has(> img[src*="/baners/"]):not(.wp-tile):not(.sp-ex)::after {
  content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; left: -45%; width: 35%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); opacity: 0;
}
.main-content a:has(> img[src*="/baners/"]):not(.wp-tile):not(.sp-ex):hover { transform: translateY(-3px) scale(1.02); animation: sp-banaura 1.4s ease-in-out infinite; }
.main-content a:has(> img[src*="/baners/"]):not(.wp-tile):not(.sp-ex):hover > img { filter: brightness(1.15) saturate(1.2); transform: scale(1.03); }
.main-content a:has(> img[src*="/baners/"]):not(.wp-tile):not(.sp-ex):hover::before { animation: sp-zap .55s steps(1, end) 1, sp-flick 2.2s .55s steps(1, end) infinite; }
.main-content a:has(> img[src*="/baners/"]):not(.wp-tile):not(.sp-ex):hover::after { opacity: 1; animation: sp-banshine .8s ease-out 1; left: 130%; }
@keyframes sp-banshine { from { left: -45%; } to { left: 130%; } }
@keyframes sp-banaura {
  0%, 100% { box-shadow: 0 0 0 2px #55d9ff, 0 0 16px 3px rgba(85, 217, 255, .6), 0 0 34px 8px rgba(8, 124, 255, .35); }
  50% { box-shadow: 0 0 0 2px #ffbf25, 0 0 20px 4px rgba(255, 191, 37, .6), 0 0 40px 10px rgba(255, 138, 0, .3); }
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .main-content a:has(> img[src*="/baners/"]):not(.wp-tile):not(.sp-ex):hover { animation: none; transform: none; }
  .main-content a:has(> img[src*="/baners/"]):not(.wp-tile):not(.sp-ex)::before, .main-content a:has(> img[src*="/baners/"]):not(.wp-tile):not(.sp-ex)::after { display: none; }
}
