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

body {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #050505;
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
}

/* Progressive Entrapment Background Grid */
.bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.bg-row {
  white-space: nowrap;
  font-size: 1.8rem;
  letter-spacing: 6px;
  line-height: 1;
}

/* Progressive Grittiness / Decay Progression */
.clean {
  color: #1a1a1a;
  opacity: 0.3;
}

.mid-1 {
  color: #2e0e0e;
  opacity: 0.4;
  letter-spacing: 8px;
}

.mid-2 {
  color: #4a1010;
  opacity: 0.5;
  filter: blur(1px);
  transform: skewX(-4deg);
}

.harsh-1 {
  color: #6d0a0a;
  opacity: 0.65;
  filter: blur(1.5px);
  transform: skewX(6deg) scaleY(1.1);
  text-shadow: 2px 0 #110000;
}

.harsh-2 {
  color: #8b0000;
  opacity: 0.8;
  filter: blur(2.5px) contrast(150%);
  transform: skewX(-8deg) scale(1.05);
  text-shadow: 3px 0 #ff000022, -3px 0 #000;
}

.ruined {
  color: #aa0000;
  opacity: 0.95;
  filter: blur(4px) contrast(200%);
  transform: skewX(12deg) scale(1.15);
  text-shadow: 0 0 10px #ff000066, 6px 2px 0px #000;
}

/* Calculator Styles - Stays perfectly centered */
.calculator {
    position: relative;
    z-index: 10;
    background-color: #141414;
    border: 1px solid #222;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(122, 28, 28, 0.15);
    width: 320px;
}

.header-display {
  color: #777;
  font-size: 0.85rem;
  letter-spacing: 3px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.display {
  background-color: #000;
  color: #f0f0f0;
  font-size: 2.2rem;
  text-align: right;
  padding: 12px;
  border: 1px solid #333;
  border-radius: 4px;
  margin-bottom: 10px;
  min-height: 60px;
  word-break: break-all;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.buttons button {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #e0e0e0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    padding: 15px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    border-radius: 4px;
}

.buttons button:hover {
    background: #2a2a2a;
    border-color: #7a1c1c;
    color: #fff;
}

.buttons button:active {
    background: #3a1010;
}

.decay-title {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) skewX(-3deg);
  z-index: 20;
  color: #aa0000;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.6rem;
  letter-spacing: 4px;
  text-align: center;
  user-select: none;
  filter: blur(0.6px) contrast(180%);
  text-shadow: 
    0 0 12px rgba(170, 0, 0, 0.7),
    2px 2px 0px #000,
    -1px -1px 4px rgba(255, 0, 0, 0.3);
  width: 100%;
  pointer-events: none;
}

/* Calculator Shake Animation */
@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.calculator.shake {
  animation: shake 0.4s ease;
}

/* Multi-Taunt Stack Breakdown */
.rize-taunt.all-taunts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
  color: #ff1a1a;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.9), 2px 2px 2px #000;
}

/* Eye positioned independently on the right, leaving calculator dead-center */
.eye-container {
  position: absolute;
  right: 6vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 380px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}