/* ============ The Playroom — game cartridges + the shared game shell ============ */
.page-head--play .page-title em { color: #D5577B; }
.arcade-band { margin-top: 0; }
.cartridges { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(18px, 3vw, 34px); }
.cartridge {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 16px 16px 20px;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(160deg, #6A1A2B, #3E0B17);
  border-radius: 10px 10px 24px 24px;
  box-shadow: inset 0 10px 0 rgba(255, 255, 255, .06), 0 26px 34px -22px rgba(59, 10, 20, .8);
  transform: rotate(var(--tilt));
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.cartridge::before { content: ""; justify-self: center; width: 60%; height: 10px; border-radius: 0 0 6px 6px; background: repeating-linear-gradient(90deg, #C9A45E 0 6px, transparent 6px 10px); opacity: .8; }
.cartridge:hover, .cartridge:focus-visible { transform: rotate(0) translateY(-8px); box-shadow: inset 0 10px 0 rgba(255, 255, 255, .06), 0 36px 44px -22px rgba(59, 10, 20, .9); }
.cartridge:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 5px; }
.cart-label { display: grid; justify-items: center; gap: 6px; padding: 18px 14px 20px; background-color: var(--tint); background-image: var(--grain); border-radius: 4px; text-align: center; box-shadow: inset 0 0 0 1px rgba(94, 22, 36, .15); }
.cart-art { display: block; width: 120px; height: 120px; transition: transform .5s var(--ease); }
.cart-art svg { width: 100%; height: 100%; }
.cartridge:hover .cart-art { transform: scale(1.08) rotate(-4deg); }
.cart-name { font-family: var(--f-display); font-size: 29px; line-height: 1.02; color: var(--burgundy); }
.cart-blurb { font-size: 14.5px; line-height: 1.45; color: var(--brown); }
.cart-best { min-height: 18px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-ink); }
.cart-go { justify-self: center; padding: 8px 18px; border: 1px solid rgba(228, 208, 160, .6); color: var(--gold-lt); font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.cartridge:hover .cart-go { background: var(--gold-lt); color: var(--velvet); }
.arcade-note { margin: 40px 0 0; text-align: center; }
.arcade-note .link-line { border: 0; background-color: var(--ivory); padding: 6px 10px; cursor: pointer; font-family: var(--f-body); }

/* ---------- a game's page ---------- */
.game-page .page-head { padding-bottom: 28px; }
.game-band { margin-top: 0; }
.game-shell {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
  background-color: var(--ivory);
  background-image: var(--grain);
  border: 1px solid rgba(176, 141, 87, .55);
  outline: 1px solid rgba(176, 141, 87, .35);
  outline-offset: -8px;
  box-shadow: 0 30px 50px -30px rgba(59, 37, 27, .6);
}
.game-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 18px; }
.game-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.game-stat { padding: 7px 12px; background: var(--blush-2); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); font-variant-numeric: tabular-nums; }
.game-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: 0; background: var(--velvet); color: var(--ivory); font: 500 12px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; box-shadow: 0 10px 18px -10px rgba(59, 37, 27, .6); transition: transform .3s var(--ease), background .2s; }
.game-btn:hover { transform: translateY(-2px); background: var(--burgundy); }
.game-btn--ghost { background: var(--ivory); color: var(--burgundy); border: 1px solid rgba(94, 22, 36, .4); box-shadow: none; }
.game-btn--ghost:hover { background: var(--blush-2); }
.game-msg { min-height: 30px; margin: 14px 0 0; font-family: var(--f-display); font-style: italic; font-size: 23px; text-align: center; color: var(--burgundy); }
.game-win { display: grid; justify-items: center; gap: 12px; padding: 30px 16px; text-align: center; }
.game-win h2 { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 6vw, 64px); line-height: 1; color: var(--burgundy); }
.game-win p { margin: 0; max-width: 44ch; color: var(--brown); }

.more-games { max-width: 1240px; margin: 0 auto; padding: clamp(60px, 8vw, 100px) clamp(16px, 4vw, 48px) 0; text-align: center; }
.more-games-title { display: inline-block; margin: 0 0 34px; padding: 12px 28px 14px; font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4.6vw, 50px); line-height: 1; color: var(--burgundy); background-color: var(--ivory); background-image: var(--grain); box-shadow: 0 12px 20px -12px rgba(59, 37, 27, .45); transform: rotate(-1deg); }
.more-games-title em { font-style: italic; color: var(--rose-ink); }
.more-games .cartridges { text-align: left; }

@media (max-width: 640px) {
  .cartridges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cartridge { padding: 10px 10px 14px; }
  .cart-art { width: 78px; height: 78px; }
  .cart-name { font-size: 21px; }
  .cart-blurb { display: none; }
  .game-msg { font-size: 20px; }
}
