/* catnip clicker. tap the cat, number goes up */

.glyph-catnip {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 32px;
}


.catnip-body {
  display: flex;
  flex-direction: row;
  background: var(--elev);
  width: 600px;
  height: 440px;
  overflow: hidden;
}

.catnip-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 5px;
}

.catnip-treats {
  margin: 0;
  font-family: var(--title-font);
  font-weight: 800;
  font-size: 42px;
  color: var(--accent);
}

.catnip-rate {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}


/* the cat is the button */
.cat-button {
  position: relative;
  width: 200px;
  height: 200px;
  cursor: pointer;
  user-select: none;
}

.cat-button img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;

  border: 3px solid var(--accent);
  box-shadow: 0 8px 24px rgba(224,125,60,0.30);

  transition: transform 0.08s ease;
  -webkit-user-drag: none;
}

.cat-button:hover img  { transform: scale(1.03); }
.cat-button:active img { transform: scale(0.93); }


.tap-hint {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);

  background: var(--accent);
  color: #fff;

  font-size: 12px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 10px;

  pointer-events: none;
  white-space: nowrap;
}


/* the little +1 that floats up on each tap */
.float-heart {
  position: absolute;
  pointer-events: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-hover);
  animation: floatUp 0.9s ease-out forwards;
  white-space: nowrap;
}

@keyframes floatUp {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-64px) scale(1.3); }
}


/* the shop on the right */
.catnip-shop {
  width: 220px;
  flex-shrink: 0;
  padding: 12px;
  box-sizing: border-box;
  overflow-y: auto;

  border-left: 1px solid var(--border);
  background: var(--panel-2);
}

.shop-title {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

.shop-item {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--elev);
  cursor: pointer;
}

.shop-item:hover {
  background: var(--accent-softer);
  border-color: var(--accent);
}

/* greyed out when you cant afford it */
.shop-item.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.si-name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.si-desc {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}

.si-cost {
  color: var(--accent-hover);
  white-space: nowrap;
}
