/* ==========================================
   PAWN STEPS — Neo-Brutalism Styles
   ========================================== */

*, *::before, *::after {
  font-family: 'Space Grotesk', sans-serif;
  box-sizing: border-box;
}

body {
  background-color: #FFFDF5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== NEO-BRUTALISM CORE ===== */
.neo-card {
  border: 4px solid #000;
  box-shadow: 8px 8px 0px #000;
  transition: transform 0.25s ease, box-shadow 0.15s ease, opacity 0.25s ease;
}

.neo-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px #000;
}

.neo-card-static {
  border: 4px solid #000;
  box-shadow: 8px 8px 0px #000;
}

.neo-btn {
  border: 4px solid #000;
  box-shadow: 4px 4px 0px #000;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.neo-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000;
}

.neo-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px #000;
}

.neo-btn-sm {
  border: 3px solid #000;
  box-shadow: 3px 3px 0px #000;
}

.neo-btn-sm:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #000;
}

.neo-btn-sm:active {
  transform: translate(3px, 3px);
  box-shadow: 0px 0px 0px #000;
}

.neo-input {
  border: 4px solid #000;
  background: #FFFDF5;
  font-weight: 700;
  outline: none;
  width: 100%;
  transition: background 0.12s, box-shadow 0.12s;
  font-size: 1rem;
}

.neo-input:focus {
  background: #FFD93D;
  box-shadow: 4px 4px 0px #000;
}

.neo-input::placeholder {
  font-weight: 700;
  color: #555;
}

/* ===== PROGRESS BAR ===== */
.progress-track {
  border: 3px solid #000;
  height: 22px;
  background: #FFFDF5;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== ANIMATIONS ===== */
@keyframes popIn {
  0%   { transform: scale(0) rotate(-8deg); opacity: 0; }
  70%  { transform: scale(1.1) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg);  opacity: 1; }
}

@keyframes taskPop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.04) rotate(1deg); }
  60%  { transform: scale(0.97) rotate(-1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes unlockBounce {
  0%   { transform: scale(0) rotate(-12deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(4deg); opacity: 1; }
  80%  { transform: scale(0.95) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes slideIn {
  0%   { transform: translateY(20px) rotate(2deg); opacity: 0; }
  100% { transform: translateY(0) rotate(0deg); opacity: 1; }
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.anim-pop-in    { animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.anim-task-pop  { animation: taskPop 0.5s ease forwards; }
.anim-unlock    { animation: unlockBounce 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.anim-slide-in  { animation: slideIn 0.4s ease forwards; }
.anim-shake     { animation: shake 0.4s ease; }

/* ===== MARQUEE ===== */
.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
}

.marquee-inner span {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0 2rem;
  white-space: nowrap;
}

/* ===== TABS ===== */
.tab-btn {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.12s;
  padding: 14px 0;
  flex: 1;
  text-align: center;
  border: none;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.tab-btn.active { background: #FF6B6B; }

.tab-btn:not(.active) { background: #FFFDF5; }

.tab-btn:not(.active):hover { background: #FFD93D; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-box {
  border: 4px solid #000;
  box-shadow: 12px 12px 0px #000;
  background: #FFFDF5;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

/* ===== BADGE ===== */
.neo-badge {
  border: 3px solid #000;
  border-radius: 9999px;
  font-weight: 900;
  font-size: 0.7rem;
  padding: 2px 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

/* ===== TOAST ===== */
.toast-box {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 200;
  border: 4px solid #000;
  box-shadow: 8px 8px 0px #000;
  padding: 16px 24px;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  min-width: 260px;
}

.toast-box.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ===== DECORATIVE ===== */
.geo-dot {
  width: 18px;
  height: 18px;
  border: 3px solid #000;
  border-radius: 50%;
  display: inline-block;
}

.geo-sq {
  width: 18px;
  height: 18px;
  border: 3px solid #000;
  display: inline-block;
}

.stripe-bg {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(0,0,0,0.06) 8px,
    rgba(0,0,0,0.06) 16px
  );
}

/* ===== INLINE DELTA SLIDER (compact) ===== */
.neo-slider-inline {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 100%;
  min-height: 16px;
  border: none;
  outline: none;
  cursor: grab;
  padding: 0;
  background: transparent;
}

.neo-slider-inline:active { cursor: grabbing; }

.neo-slider-inline::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 24px;
  background: #000;
  border: none;
  cursor: grab;
}

.neo-slider-inline:active::-webkit-slider-thumb { cursor: grabbing; }

.neo-slider-inline::-moz-range-thumb {
  width: 14px;
  height: 24px;
  background: #000;
  border: none;
  border-radius: 0;
  cursor: grab;
}

.neo-slider-inline::-moz-range-track {
  background: transparent;
  border: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }

::-webkit-scrollbar-track { background: #FFFDF5; border-left: 2px solid #000; }

::-webkit-scrollbar-thumb { background: #000; }

/* ===== REWARD CARD ===== */
.reward-card {
  border: 4px solid #000;
  box-shadow: 6px 6px 0px #000;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}

.reward-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0px #000;
}

.reward-card.locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(0,0,0,0.07) 10px,
    rgba(0,0,0,0.07) 20px
  );
  pointer-events: none;
}
