/* NelsonCraft HyperPanel 3000(tm) - injected by Apache into PufferPanel. Remove the Substitute line in mc.nelsons.lv.conf to undo. */
@import url("https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Bangers&display=swap");

:root {
  --slop-pink: #ff2bd6;
  --slop-cyan: #00e5ff;
  --slop-lime: #b6ff00;
  --slop-yellow: #ffe600;
  --slop-orange: #ff7a00;
  --slop-ink: #120024;
  --slop-rainbow: linear-gradient(90deg, #ff2bd6, #ff7a00, #ffe600, #b6ff00, #00e5ff, #8a5cff, #ff2bd6);
  --slop-ticker-h: 30px;
}

/* ---------- page background: everything shows through the gaps between cards ---------- */
html.slop body {
  background: #1a0033;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 43, 214, .35), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(0, 229, 255, .30), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(182, 255, 0, .25), transparent 45%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 12px, transparent 12px 24px);
  background-attachment: fixed;
}
html.slop .v-application.theme--light,
html.slop .v-application.theme--dark { background: transparent !important; }
html.slop #app { position: relative; z-index: 1; }

html.slop .v-application,
html.slop .v-application .v-card__title,
html.slop .v-application .v-list-item__title,
html.slop .v-application .v-btn {
  font-family: "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive !important;
}
/* consoles, editors and code stay monospace and untouched */
html.slop .v-application pre,
html.slop .v-application code,
html.slop .v-application textarea,
html.slop .v-application .ace_editor,
html.slop .v-application .ace_editor *,
html.slop .v-application [class*="console"],
html.slop .v-application [class*="console"] * {
  font-family: "Roboto Mono", ui-monospace, monospace !important;
}

/* ---------- app bar ---------- */
html.slop .v-app-bar.v-app-bar {
  background: var(--slop-rainbow) !important;
  background-size: 300% 100% !important;
  animation: slop-slide 8s linear infinite;
  border-bottom: 4px solid var(--slop-ink) !important;
  box-shadow: 0 4px 0 var(--slop-pink), 0 8px 0 var(--slop-cyan) !important;
}
html.slop .v-app-bar .v-toolbar__title {
  font-size: 0 !important;
  overflow: visible;
  cursor: pointer;
}
html.slop .v-app-bar .v-toolbar__title > * { font-size: 0 !important; }
html.slop .v-app-bar .v-toolbar__title::before {
  content: "NELSONCRAFT\2122  HYPERPANEL 3000";
  font: 26px/1 "Bangers", Impact, sans-serif;
  letter-spacing: 1.5px;
  color: #fff;
  -webkit-text-stroke: 1.5px var(--slop-ink);
  text-shadow: 3px 3px 0 var(--slop-ink), 5px 5px 0 var(--slop-pink);
}
html.slop .v-app-bar .v-toolbar__title::after {
  content: "\26CF\FE0F";
  display: inline-block;
  font-size: 24px;
  margin-left: 10px;
  animation: slop-spin 2.4s linear infinite;
}
html.slop .v-app-bar .v-btn .v-icon { color: var(--slop-ink) !important; }

/* ---------- cards ---------- */
html.slop .v-main .v-card {
  border: 3px solid var(--slop-ink) !important;
  border-radius: 14px !important;
  box-shadow: 6px 6px 0 var(--slop-pink), 12px 12px 0 var(--slop-cyan) !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
html.slop .v-main .v-card .v-card { box-shadow: none !important; border-width: 2px !important; }
html.slop .v-main .v-card__title {
  font-family: "Bangers", Impact, sans-serif !important;
  font-size: 1.6rem !important;
  letter-spacing: 1px;
  background: var(--slop-rainbow);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slop-slide 6s linear infinite;
  filter: drop-shadow(1px 1px 0 var(--slop-ink));
}

/* login page sticker (the panel really is on HTTPS now) */
html.slop[data-slop-route="login"] .v-main .v-card { overflow: visible !important; }
html.slop[data-slop-route="login"] .v-main .v-card::after {
  content: "NOW WITH\A HTTPS!!";
  white-space: pre;
  position: absolute;
  top: -34px;
  right: -40px;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  text-align: center;
  font: 17px/1.05 "Bangers", Impact, sans-serif;
  color: var(--slop-ink);
  background: var(--slop-yellow);
  clip-path: polygon(50% 0, 61% 18%, 82% 9%, 80% 31%, 100% 38%, 85% 54%, 98% 72%, 76% 75%, 72% 97%, 54% 84%, 36% 100%, 30% 78%, 8% 82%, 16% 61%, 0 45%, 19% 35%, 13% 13%, 35% 18%);
  animation: slop-pulse 1.1s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

/* ---------- buttons ---------- */
html.slop .v-main .v-btn.v-btn--has-bg:not(.v-btn--disabled) {
  background-image: linear-gradient(135deg, var(--slop-pink), var(--slop-orange)) !important;
  color: #fff !important;
  border: 2px solid var(--slop-ink) !important;
  box-shadow: 3px 3px 0 var(--slop-ink) !important;
  text-shadow: 1px 1px 0 var(--slop-ink);
  font-weight: 700;
}
html.slop .v-main .v-btn.v-btn--has-bg:not(.v-btn--disabled):hover { animation: slop-wobble .45s ease-in-out; }
html.slop .v-main .v-btn.v-btn--has-bg:not(.v-btn--disabled):active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--slop-ink) !important; }

/* ---------- side menu ---------- */
html.slop .v-navigation-drawer { border-right: 4px solid var(--slop-pink) !important; }
html.slop .v-navigation-drawer .v-list-item--active::before { opacity: .18 !important; background: var(--slop-pink) !important; }
html.slop .v-navigation-drawer .v-list-item--active .v-list-item__title::after { content: " \2728"; }

/* ---------- decoration layers (never clickable) ---------- */
#slop-sky, #slop-fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#slop-sky { z-index: 0; }
#slop-fx { z-index: 9990; }
.slop-floater {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  user-select: none;
  white-space: nowrap;
  font-size: 30px;
  line-height: 1;
}
.slop-floater.slop-word {
  font: 20px/1 "Bangers", Impact, sans-serif;
  letter-spacing: 1px;
  color: var(--slop-yellow);
  -webkit-text-stroke: 1px var(--slop-ink);
  text-shadow: 2px 2px 0 var(--slop-pink);
}
.slop-spark { position: absolute; font-size: 16px; pointer-events: none; animation: slop-spark .9s ease-out forwards; }
.slop-burst { position: absolute; font-size: 26px; pointer-events: none; transition: transform 1.2s cubic-bezier(.15, .7, .3, 1), opacity 1.2s ease-in; }

/* minecraft-ish achievement toast */
#slop-toast {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 9991;
  pointer-events: none;
  background: #212121;
  border: 3px solid #555;
  outline: 3px solid #000;
  padding: 8px 14px 8px 46px;
  color: #fff;
  font: 14px/1.3 "Comic Sans MS", "Comic Neue", cursive;
  transform: translateX(130%);
  transition: transform .4s cubic-bezier(.2, 1.4, .4, 1);
  max-width: min(320px, calc(100vw - 32px));
}
#slop-toast.show { transform: translateX(0); }
#slop-toast::before { content: "\1F3C6"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 22px; }
#slop-toast b { display: block; color: var(--slop-yellow); }

/* bottom news ticker */
#slop-ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--slop-ticker-h);
  z-index: 9989;
  background: var(--slop-ink);
  border-top: 3px solid var(--slop-yellow);
  color: var(--slop-lime);
  font: 15px/var(--slop-ticker-h) "Comic Sans MS", "Comic Neue", cursive;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}
#slop-ticker .slop-track { display: inline-block; padding-left: 100%; animation: slop-ticker 60s linear infinite; }
#slop-ticker .slop-tag { color: var(--slop-ink); background: var(--slop-yellow); padding: 0 8px; margin: 0 6px; font-weight: 700; }
html.slop .v-main { padding-bottom: calc(var(--slop-ticker-h) + 8px) !important; }
html.slop .v-footer { margin-bottom: var(--slop-ticker-h); }

#slop-calm {
  position: fixed;
  right: 12px;
  bottom: calc(var(--slop-ticker-h) + 10px);
  z-index: 9992;
  pointer-events: auto;
  cursor: pointer;
  border: 2px solid var(--slop-ink);
  border-radius: 999px;
  background: var(--slop-yellow);
  color: var(--slop-ink);
  font: 700 13px/1 "Comic Sans MS", "Comic Neue", cursive;
  padding: 8px 12px;
  box-shadow: 3px 3px 0 var(--slop-ink);
}
#slop-calm:hover { background: var(--slop-lime); }
#slop-calm:focus-visible { outline: 3px solid var(--slop-cyan); outline-offset: 2px; }

/* ---------- extra slop ---------- */
/* slowly spinning sun rays behind everything */
#slop-sky::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260vmax;
  height: 260vmax;
  margin: -130vmax 0 0 -130vmax;
  background: repeating-conic-gradient(rgba(255, 230, 0, .07) 0 8deg, transparent 8deg 16deg);
  animation: slop-spin 90s linear infinite;
}
.slop-floater.slop-giant { opacity: .45; filter: blur(.5px); }

/* pickaxe cursor (set from JS); fields and clickables keep their usual cursors */
html.slop body { cursor: var(--slop-cursor, auto); }
html.slop input, html.slop textarea, html.slop .ace_editor, html.slop .ace_editor * { cursor: text !important; }
html.slop a, html.slop button, html.slop .v-btn, html.slop [role="button"], html.slop .v-list-item--link { cursor: pointer; }
html.slop-calm body { cursor: auto; }

html.slop ::selection { background: var(--slop-pink); color: #fff; }
html.slop ::-webkit-scrollbar { width: 14px; height: 14px; }
html.slop ::-webkit-scrollbar-track { background: var(--slop-ink); }
html.slop ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ff2bd6, #ff7a00, #ffe600, #b6ff00, #00e5ff); border: 3px solid var(--slop-ink); border-radius: 8px; }

/* menu entries jiggle on hover */
html.slop .v-list-item--link:hover .v-list-item__title { animation: slop-wobble .5s ease-in-out; display: inline-block; }
html.slop .v-list-item--link:hover .v-list-item__icon .v-icon { animation: slop-spin .6s ease-in-out; }

/* hazard tape on top of the ticker */
#slop-ticker { border-top: 0; }
#slop-ticker::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: repeating-linear-gradient(-45deg, var(--slop-yellow) 0 10px, #000 10px 20px);
  z-index: 1;
}
#slop-ticker .slop-track { padding-top: 2px; }

/* fake 1998 popup ads that drift behind the cards */
.slop-ad {
  width: 230px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .45);
  font: 12px/1.3 Tahoma, Verdana, sans-serif;
  color: #000;
  white-space: normal;
  opacity: .92;
}
.slop-ad-title {
  display: flex;
  justify-content: space-between;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-weight: 700;
  padding: 3px 4px 3px 6px;
}
.slop-ad-title span:last-child { background: #c0c0c0; color: #000; border: 1px solid; border-color: #fff #404040 #404040 #fff; padding: 0 5px; line-height: 14px; }
.slop-ad-body { padding: 10px; text-align: center; }
.slop-ad-body big { display: block; font: 22px/1.1 "Bangers", Impact, sans-serif; color: #e00000; animation: slop-blink 1s steps(2, start) infinite; }
.slop-ad-btn { display: inline-block; margin-top: 8px; border: 2px solid; border-color: #fff #404040 #404040 #fff; padding: 3px 14px; background: #c0c0c0; }

/* Pickly, the unhelpful assistant (wide screens only, never clickable) */
#slop-helper {
  position: fixed;
  right: 16px;
  bottom: calc(var(--slop-ticker-h) + 56px);
  z-index: 9988;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
#slop-helper .slop-bubble {
  max-width: 230px;
  background: #ffffe1;
  color: #000;
  border: 2px solid #000;
  border-radius: 12px 12px 0 12px;
  padding: 8px 10px;
  font: 13px/1.35 "Comic Sans MS", "Comic Neue", cursive;
  box-shadow: 3px 3px 0 #000;
}
#slop-helper .slop-bubble b { display: block; font-size: 11px; color: #6a00a8; }
#slop-helper .slop-pickly { font-size: 46px; line-height: 1; animation: slop-bob 1.6s ease-in-out infinite; filter: drop-shadow(2px 2px 0 #000); }
@media (max-width: 1100px) { #slop-helper { display: none; } }

/* click feedback */
.slop-xp {
  position: absolute;
  pointer-events: none;
  font: 18px/1 "Bangers", Impact, sans-serif;
  color: var(--slop-lime);
  -webkit-text-stroke: 1px #000;
  text-shadow: 2px 2px 0 #000;
  animation: slop-xp 1s ease-out forwards;
  white-space: nowrap;
}
.slop-xp.slop-combo { font-size: 30px; color: var(--slop-yellow); }

html.slop-shake .v-application { animation: slop-shake .45s linear; }
html.slop-god .v-application { animation: slop-god 3s ease-in-out; }

@keyframes slop-blink { to { visibility: hidden; } }
@keyframes slop-bob { 50% { transform: translateY(-8px) rotate(-8deg); } }
@keyframes slop-xp { to { transform: translateY(-50px) scale(1.2); opacity: 0; } }
@keyframes slop-shake { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, -2px); } 80% { transform: translate(3px, 4px); } }
@keyframes slop-god { 50% { transform: rotate(180deg) scale(.6); filter: hue-rotate(180deg); } to { transform: rotate(360deg); } }

/* ---------- phones ---------- */
html.slop body { overflow-x: hidden; }
@media (max-width: 600px) {
  html.slop .v-app-bar .v-toolbar__title::before { content: "NELSONCRAFT\2122  HP3000"; font-size: 21px; }
  html.slop .v-app-bar .v-toolbar__title::after { font-size: 18px; margin-left: 6px; }
  html.slop .v-main .v-card { box-shadow: 4px 4px 0 var(--slop-pink), 8px 8px 0 var(--slop-cyan) !important; }
  html.slop[data-slop-route="login"] .v-main .v-card::after { right: -8px; top: -30px; width: 88px; height: 88px; font-size: 15px; }
  .slop-floater { font-size: 24px; }
}

/* ---------- calm mode: same branding, nothing moves ---------- */
html.slop-calm #slop-sky,
html.slop-calm #slop-fx,
html.slop-calm #slop-toast,
html.slop-calm #slop-helper,
html.slop-calm .slop-xp { display: none !important; }
html.slop-calm *,
html.slop-calm *::before,
html.slop-calm *::after { animation: none !important; }
html.slop-calm #slop-ticker .slop-track { padding-left: 12px; }

@keyframes slop-slide { to { background-position: 300% 0; } }
@keyframes slop-spin { to { transform: rotate(360deg); } }
@keyframes slop-pulse { 50% { transform: scale(1.12) rotate(14deg); } 0%, 100% { transform: scale(1) rotate(8deg); } }
@keyframes slop-wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg) scale(1.05); } 75% { transform: rotate(4deg) scale(1.05); } }
@keyframes slop-ticker { to { transform: translateX(-100%); } }
@keyframes slop-spark { to { transform: translate(var(--dx), -40px) scale(.3); opacity: 0; } }
