/* Game pieces shared by Home and the Penny Game preview:
   lid (SVG), box side, die, penny. Smooth solid color, no layer lines. */

/* ---------- Lid (top view) ---------- */
/* Colors come from --body and --ink on the element or a parent. */
.lid { width: 100%; height: auto; overflow: visible; }
.lid__body { fill: var(--body, #F5F5F4); stroke: rgba(15, 15, 16, .14); stroke-width: 2; }
.lid__tab { fill: var(--body, #F5F5F4); stroke: rgba(15, 15, 16, .14); stroke-width: 2; }
.lid__num {
  fill: var(--ink, #1F1F1F);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: 54px;
  text-anchor: middle;
}
.lid__slot { fill: var(--ink, #1F1F1F); }
.lid__shade { fill: url(#lid-shade); pointer-events: none; }

/* ---------- Die ---------- */
/* Set --die (face color) and --pip (recess color). --size sets the edge. */
.die {
  --size: 64px;
  width: var(--size);
  height: var(--size);
  border-radius: calc(var(--size) * .2);
  background: var(--die, #F5F5F4);
  box-shadow:
    inset 0 -3px 0 rgba(15, 15, 16, .10),
    inset 0 2px 0 rgba(255, 255, 255, .55),
    0 6px 14px rgba(15, 15, 16, .16);
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  padding: calc(var(--size) * .14);
  gap: calc(var(--size) * .04);
  flex: none;
}
.die__pip {
  align-self: center; justify-self: center;
  width: calc(var(--size) * .17);
  height: calc(var(--size) * .17);
  border-radius: 50%;
  background: var(--pip, #D6D3D1);
  box-shadow: inset 0 calc(var(--size) * .03) calc(var(--size) * .04) rgba(0, 0, 0, .35);
}
/* Pip positions: tl tr ml mm mr bl br */
.die__pip[data-p="tl"] { grid-area: 1 / 1; }
.die__pip[data-p="tr"] { grid-area: 1 / 3; }
.die__pip[data-p="ml"] { grid-area: 2 / 1; }
.die__pip[data-p="mm"] { grid-area: 2 / 2; }
.die__pip[data-p="mr"] { grid-area: 2 / 3; }
.die__pip[data-p="bl"] { grid-area: 3 / 1; }
.die__pip[data-p="br"] { grid-area: 3 / 3; }

/* ---------- Penny ---------- */
/* Set --penny. Text is the same color, styled as raised. */
.penny {
  --d: 76px;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 55%),
    var(--penny, #F5F5F4);
  box-shadow:
    inset 0 0 0 calc(var(--d) * .045) rgba(15, 15, 16, .07),
    inset 0 -2px 3px rgba(15, 15, 16, .12),
    0 4px 10px rgba(15, 15, 16, .16);
  display: grid; place-items: center;
  flex: none;
  overflow: hidden;
}
.penny__text {
  color: var(--penny, #F5F5F4);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  max-width: 86%;
  text-align: center;
  /* Raised look: light edge on top-left, soft shadow bottom-right */
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, .55),
    1px 1px 1px rgba(15, 15, 16, .35),
    1px 2px 3px rgba(15, 15, 16, .18);
}
