@import url('https://fonts.googleapis.com/css2?family=Neucha&family=Pixelify+Sans:wght@600;700&display=swap');

@font-face {
  font-family: 'AndyBold';
  src: url('/vendor/AndyBold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --terraria-font: 'AndyBold', 'Andy', 'Neucha', 'Comic Sans MS', cursive, sans-serif;
  --pixel-font: 'Pixelify Sans', 'AndyBold', 'Neucha', monospace;
  --primary: #252a34;
  --primary-hover: #323846;
  --bg: #111317;
  --surface: #1a1d24;
  --surface-light: #252a34;
  --surface-hover: #323846;
  --text-primary: #f5f6fa;
  --text-secondary: #9da6b7;
  --text-dim: #606877;
  --border: #383e4d;
  --border-hover: #555e70;
  --danger: #ff4466;
  --danger-hover: #ff6688;
  --success: #33cc66;
}

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

body {
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  font-family: var(--terraria-font);
  font-size: 15px;
  letter-spacing: 0.3px;
}

/* Animations: Rainbow, Wobble, Float & Jiggle */
@keyframes terrariaRainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes funnyWobble {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-1.5deg); }
  50% { transform: translateY(2px) rotate(1deg); }
  75% { transform: translateY(-2px) rotate(1.5deg); }
}

@keyframes funnyFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-6px) scale(1.04); }
}

@keyframes funnyJiggle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.08, 0.92) rotate(-3deg); }
  50% { transform: scale(0.92, 1.08) rotate(3deg); }
  75% { transform: scale(1.04, 0.96) rotate(-1deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.rainbow-title, .rainbow-text {
  background: linear-gradient(90deg, #ff3366, #ff9933, #ffee00, #33cc66, #00d4ff, #b844ff, #ff3366);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: terrariaRainbow 3.5s linear infinite;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.wobble-title {
  display: inline-block;
  animation: funnyWobble 2.6s ease-in-out infinite;
}

.float-icon {
  display: inline-flex;
  animation: funnyFloat 2.8s ease-in-out infinite;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 14px;
  margin-bottom: 20px;
  animation: fadeUp .4s ease backwards;
}
.crumb {
  color: #f5f6fa;
  text-decoration: none;
  font-weight: 700;
  transition: color .15s;
  text-shadow: 1px 1px 0 #000;
}
.crumb:hover {
  text-decoration: underline;
  color: #fff;
}
.sep {
  color: #555e70;
  margin: 0 6px;
}

/* Universal Copy Button (the reference look) */
.copy-btn {
  background: var(--surface-light);
  border: 2px solid var(--border);
  color: #f5f6fa;
  border-radius: 0;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  flex-shrink: 0;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.12), 0 3px 0 #08090c;
  transition: all .12s;
  text-shadow: 1px 1px 0 #000;
}
.copy-btn:hover {
  background: #323846;
  border-color: #555e70;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.22), 0 5px 0 #08090c;
  text-shadow: 1px 1px 0 #000;
}
.copy-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #08090c;
}
.copy-btn.copied {
  background: #1a3a1a;
  color: #00e676;
  border-color: #00e676;
}

/* Back Link Button */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f5f6fa;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  padding: 6px 14px;
  background: var(--surface-light);
  border: 2px solid var(--border);
  border-radius: 0;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.12), 0 3px 0 #08090c;
  transition: all .12s;
  text-shadow: 1px 1px 0 #000;
}
.back-link:hover {
  background: #323846;
  border-color: #555e70;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.22), 0 5px 0 #08090c;
}
.back-link:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #08090c;
}

/* Notification Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #181d24;
  border: 3px solid #33cc66;
  color: #7affb0;
  padding: 12px 28px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 700;
  box-shadow: inset 1px 1px 0 #afffd0, 0 6px 0 #08090c, 0 0 30px rgba(51, 204, 102, 0.4);
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  z-index: 1000;
  text-shadow: 1px 1px 0 #000;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}
