/* =========================================================
   The shop — cosmetics bought with Silly Coins.
   Reuses the global card, pill and button styles; only the
   grid and the item tile are new.
   ========================================================= */

.shop-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-bottom: 26px;
}
@media (min-width: 560px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

.shop-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  min-width: 0;
}
.shop-item.owned { border-color: var(--surface-2); background: var(--bg-2); }
.shop-item.worn {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.shop-em {
  font-size: 34px;
  line-height: 1;
}

.shop-body { min-width: 0; }
.shop-body b {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .01em;
  /* Long names wrap rather than pushing the tile wide. */
  overflow-wrap: anywhere;
}
.shop-blurb {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink-dim);
  overflow-wrap: anywhere;
}

/* Price and action sit on one row, wrapping on very narrow screens. */
.shop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.shop-foot .btn { flex: 1 1 auto; min-width: 96px; }

/* ---------- the renaming deed ---------- */
.greg-panel { margin-bottom: 26px; }

.greg-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}

.greg-input {
  flex: 1 1 160px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--bg-2);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 16px;          /* 16px stops iOS zooming the page on focus */
  letter-spacing: .02em;
}
.greg-input::placeholder { color: var(--ink-dim); opacity: .7; }
.greg-input:focus { border-color: var(--accent); outline: none; }
.greg-input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.greg-row .btn { flex: 0 0 auto; }

/* ---------- worn cosmetics inside the games ---------- */

/* The frog's hat, perched above him rather than beside him. It is a
   sibling inside this wrapper, because the game reassigns the frog's
   textContent when his mood changes and would wipe a child node. */
.ft-frog-wrap { position: relative; display: inline-block; }
.ft-frog-wrap .ft-hat {
  position: absolute;
  left: 50%;
  top: -0.06em;
  transform: translateX(-50%) rotate(-8deg);
  font-size: .40em;
  line-height: 1;
  pointer-events: none;
}

/* The face on the awkward button, above its label. */
.ab-face {
  display: block;
  font-size: 26px;
  line-height: 1;
  margin-bottom: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .ft-hat { transform: translateX(-50%); }
}
