/* Pack generator: a workbench you build packs on. */

.pg-page, .pg-page *, .pg-picker, .pg-picker * { box-sizing: border-box; }

.pg-page {
  --wood-dark: #4a3116;
  --wood: #6b4520;
  --wood-lit: #8a5f30;
  --plank: #c08a4a;
  --iron: #aab4bd;
  --iron-dark: #5b646d;
  --steel: #7fa6c9;
  --cream: #f5ecdd;
  --ink: #14100c;
  --soft: rgba(245, 236, 221, .62);
  color: var(--cream);
  position: relative;
  padding-bottom: 90px;
}

.pg-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(127, 166, 201, .16), transparent 60%),
    radial-gradient(90% 70% at 10% 100%, rgba(192, 138, 74, .12), transparent 65%),
    var(--ink);
  pointer-events: none;
}

/* ---------- hero ---------- */

.pg-hero {
  position: relative;
  min-height: 460px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 30px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 90px 24px 40px;
  perspective: 1200px;
}

.pg-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: -.02em;
  color: var(--cream);
  text-shadow: 0 12px 30px rgba(0, 0, 0, .55);
}

.pg-hero h1 em {
  font-style: normal;
  color: var(--plank);
}

.pg-hero p {
  color: var(--soft);
  font-size: 16px;
  line-height: 1.7;
  max-width: 46ch;
  margin: 0 0 26px;
}

.pg-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1px solid rgba(192, 138, 74, .5);
  background: linear-gradient(180deg, var(--wood-lit), var(--wood));
  box-shadow: 0 10px 0 -2px var(--wood-dark), 0 22px 40px rgba(0, 0, 0, .5);
  color: var(--cream);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transform: translateZ(0);
  transition: transform .16s ease, box-shadow .16s ease;
}

.pg-hero-cta:hover { transform: translateY(-3px); box-shadow: 0 13px 0 -2px var(--wood-dark), 0 28px 50px rgba(0, 0, 0, .55); }
.pg-hero-cta:active { transform: translateY(3px); box-shadow: 0 5px 0 -2px var(--wood-dark), 0 12px 24px rgba(0, 0, 0, .5); }

.pg-hero-stage {
  position: relative;
  height: 380px;
  perspective: 900px;
  transform-style: preserve-3d;
}

.pg-hero-floor {
  position: absolute;
  left: 50%;
  bottom: 46px;
  width: 260px;
  height: 90px;
  transform: translateX(-50%) rotateX(74deg);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}

/* ---------- 3d cube ---------- */

.pg-cube {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, -22deg)) rotateY(var(--ry, 38deg));
  will-change: transform;
}

.pg-cube .f {
  position: absolute;
  inset: 0;
  background-size: 100% 100%;
  image-rendering: pixelated;
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22);
}

.pg-cube .f.up { filter: brightness(1.16); }
.pg-cube .f.dn { filter: brightness(.55); }
.pg-cube .f.lf, .pg-cube .f.rt { filter: brightness(.78); }
.pg-cube .f.bk { filter: brightness(.7); }

.pg-cube.pg-item i {
  position: absolute;
  inset: 0;
  background-size: 100% 100%;
  image-rendering: pixelated;
}


.pg-hero-cube {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 168px;
  height: 168px;
  margin: -84px 0 0 -84px;
  z-index: 1;
  animation: pg-float 7s ease-in-out infinite;
}

.pg-ring {
  --r: 200px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  animation: pg-orbit 26s linear infinite;
}

@media (max-width: 1240px) { .pg-ring { --r: 150px; } }
@media (max-width: 1100px) { .pg-ring { --r: 118px; } }

.pg-arm {
  position: absolute;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  transform-style: preserve-3d;
  cursor: grab;
}

.pg-arm:active { cursor: grabbing; }

@keyframes pg-orbit {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

@keyframes pg-float {
  0%, 100% { transform: translateY(-8px) rotateX(-18deg) rotateY(0deg); }
  50% { transform: translateY(10px) rotateX(-24deg) rotateY(180deg); }
}

@keyframes pg-spin-slow {
  from { transform: rotateX(-20deg) rotateY(0deg); }
  to { transform: rotateX(-20deg) rotateY(360deg); }
}

/* ---------- workbench ---------- */

.pg-bench {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  padding: 30px 24px 0;
}

.pg-panel {
  position: relative;
  border-radius: 18px;
  padding: 26px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .16) 0 2px, transparent 2px 74px),
    linear-gradient(180deg, var(--wood-lit), var(--wood));
  border: 1px solid rgba(0, 0, 0, .45);
  box-shadow:
    inset 0 1px 0 rgba(245, 236, 221, .18),
    inset 0 -18px 34px rgba(0, 0, 0, .3),
    0 26px 60px rgba(0, 0, 0, .5);
}

.pg-panel + .pg-panel { margin-top: 22px; }

.pg-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(245, 236, 221, .75);
  margin: 0 0 18px;
}

.pg-panel-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 236, 221, .28), transparent);
}

.pg-setup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.pg-field label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245, 236, 221, .68);
  margin-bottom: 8px;
}

.pg-field input[type=text] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(20, 16, 12, .58);
  border: 1px solid rgba(0, 0, 0, .5);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5);
  color: var(--cream);
  font-size: 15px;
  font-family: inherit;
}

.pg-field input[type=text]:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5), 0 0 0 3px rgba(127, 166, 201, .22);
}

.pg-toggle { display: flex; gap: 8px; }

.pg-toggle-btn {
  flex: 1;
  padding: 12px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  color: rgba(245, 236, 221, .6);
  background: rgba(20, 16, 12, .5);
  border: 1px solid rgba(0, 0, 0, .5);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .45);
  transition: transform .14s ease, color .14s ease, background .14s ease;
}

.pg-toggle-btn:hover { color: var(--cream); transform: translateY(-1px); }

.pg-toggle-btn.active {
  color: var(--ink);
  background: linear-gradient(180deg, #cfd8e0, var(--iron));
  border-color: rgba(0, 0, 0, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 0 -1px var(--iron-dark);
}

/* ---------- recipe rows ---------- */

.pg-rows { display: flex; flex-direction: column; gap: 16px; }

.pg-row {
  position: relative;
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 16, 12, .42), rgba(20, 16, 12, .58));
  border: 1px solid rgba(0, 0, 0, .45);
  box-shadow: inset 0 1px 0 rgba(245, 236, 221, .08);
  perspective: 800px;
}

.pg-slot {
  position: relative;
  width: 116px;
  height: 132px;
  padding: 12px 8px 26px;
  border-radius: 12px;
  cursor: pointer;
  background:
    radial-gradient(80% 60% at 50% 18%, rgba(127, 166, 201, .1), transparent 70%),
    linear-gradient(180deg, #2a2119, #17120d);
  border: 1px solid rgba(0, 0, 0, .6);
  box-shadow:
    inset 2px 2px 0 rgba(0, 0, 0, .55),
    inset -2px -2px 0 rgba(245, 236, 221, .1),
    0 6px 14px rgba(0, 0, 0, .35);
  display: grid;
  place-items: center;
  perspective: 420px;
  transition: transform .2s cubic-bezier(.2, .8, .3, 1), box-shadow .2s ease, border-color .2s ease;
}

.pg-slot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 62px;
  height: 14px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .6), transparent 70%);
  filter: blur(3px);
  pointer-events: none;
}

.pg-slot:hover, .pg-slot:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(127, 166, 201, .6);
  box-shadow:
    inset 2px 2px 0 rgba(0, 0, 0, .5),
    inset -2px -2px 0 rgba(245, 236, 221, .12),
    0 16px 26px rgba(0, 0, 0, .45),
    0 0 0 3px rgba(127, 166, 201, .2);
  outline: none;
}

.pg-slot .pg-cube { width: 54px; height: 54px; }
.pg-slot img.flat { width: 52px; height: 52px; image-rendering: pixelated; }

.pg-slot-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(245, 236, 221, .8);
  padding: 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .8);
}

.pg-slot.empty .pg-slot-label { color: rgba(245, 236, 221, .45); font-weight: 600; }

.pg-plus {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 300;
  color: rgba(245, 236, 221, .3);
  pointer-events: none;
}

.pg-arrow {
  display: grid;
  place-items: center;
  width: 54px;
  height: 26px;
  color: rgba(245, 236, 221, .5);
}

.pg-arrow svg { width: 46px; height: 18px; }

.pg-name {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(20, 16, 12, .55);
  border: 1px solid rgba(0, 0, 0, .5);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .45);
  color: var(--cream);
  font-size: 14px;
  font-family: inherit;
}

.pg-name:focus { outline: none; border-color: var(--steel); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .45), 0 0 0 3px rgba(127, 166, 201, .2); }

.pg-remove {
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(20, 16, 12, .5);
  color: rgba(230, 140, 140, .85);
  border: 1px solid rgba(0, 0, 0, .5);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: transform .14s ease, color .14s ease;
}

.pg-remove:hover { color: #ff9b9b; transform: translateY(-2px); }

.pg-warn {
  grid-column: 1 / -1;
  font-size: 12.5px;
  line-height: 1.5;
  color: #e8c877;
  padding-left: 2px;
}

/* ---------- actions ---------- */

.pg-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.pg-btn {
  padding: 13px 20px;
  border-radius: 11px;
  border: 1px solid rgba(0, 0, 0, .5);
  background: linear-gradient(180deg, #3a2e21, #291f16);
  color: var(--cream);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(245, 236, 221, .12), 0 5px 0 -1px rgba(0, 0, 0, .5);
  transition: transform .14s ease, box-shadow .14s ease;
}

.pg-btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(245, 236, 221, .14), 0 7px 0 -1px rgba(0, 0, 0, .5); }
.pg-btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(245, 236, 221, .1), 0 2px 0 -1px rgba(0, 0, 0, .5); }

.pg-btn.primary {
  background: linear-gradient(180deg, #cfd8e0, var(--iron));
  color: #14100c;
  border-color: rgba(0, 0, 0, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 6px 0 -1px var(--iron-dark), 0 18px 30px rgba(0, 0, 0, .4);
}

.pg-btn:disabled { opacity: .42; cursor: not-allowed; transform: none; }

.pg-meta { color: var(--soft); font-size: 13px; }

.pg-compat {
  margin: 20px 0 0;
  padding: 13px 16px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  color: #bfe0c0;
  background: rgba(20, 16, 12, .5);
  border: 1px solid rgba(0, 0, 0, .45);
  border-left: 3px solid #7cbf7f;
}

.pg-compat:empty { display: none; }
.pg-compat.bad { color: #f0a6a6; border-left-color: #d06a6a; }

#pg-status { margin-top: 14px; min-height: 20px; }

/* ---------- picker ---------- */

.pg-picker { position: fixed; inset: 0; z-index: 5000; display: none; }
.pg-picker.open { display: block; }

.pg-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 4, .78);
  backdrop-filter: blur(3px);
}

.pg-picker-panel {
  position: relative;
  max-width: 900px;
  margin: 5vh auto 0;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #3b2b18, #241a10);
  border: 1px solid rgba(0, 0, 0, .6);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(245, 236, 221, .16);
  animation: pg-pop .2s ease-out;
}

@keyframes pg-pop {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.pg-picker-top {
  display: flex;
  gap: 10px;
  padding: 16px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(0, 0, 0, .5);
  background: rgba(20, 16, 12, .35);
}

.pg-picker-top input[type=search],
.pg-picker-top select {
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(20, 16, 12, .6);
  border: 1px solid rgba(0, 0, 0, .5);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5);
  color: var(--cream);
  font-family: inherit;
  font-size: 14px;
}

.pg-picker-top input[type=search] { flex: 1; min-width: 170px; }
.pg-picker-top input[type=search]:focus, .pg-picker-top select:focus { outline: none; border-color: var(--steel); }

.pg-filelabel {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 10px;
  background: rgba(20, 16, 12, .5);
  border: 1px dashed rgba(192, 138, 74, .55);
  color: rgba(245, 236, 221, .8);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pg-filelabel:hover { border-color: var(--plank); color: var(--cream); }
.pg-filelabel input { display: none; }

.pg-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
  perspective: 700px;
}

.pg-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px 10px;
  cursor: pointer;
  border-radius: 10px;
  background: linear-gradient(180deg, #2a2119, #1b1610);
  border: 1px solid rgba(0, 0, 0, .55);
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .45), inset -2px -2px 0 rgba(245, 236, 221, .07);
  color: rgba(245, 236, 221, .9);
  font-size: 11px;
  font-family: inherit;
  text-align: center;
  line-height: 1.3;
  transform-style: preserve-3d;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.pg-cell:hover, .pg-cell:focus-visible {
  transform: translateY(-5px) scale(1.03);
  border-color: rgba(127, 166, 201, .55);
  box-shadow: 0 16px 26px rgba(0, 0, 0, .5), 0 0 0 3px rgba(127, 166, 201, .18);
  outline: none;
  z-index: 2;
}

.pg-cell img { width: 44px; height: 44px; image-rendering: pixelated; transition: transform .16s ease; }
.pg-cell:hover img { transform: translateY(-2px) scale(1.08) rotate(-3deg); }

.pg-cell span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pg-none { color: var(--soft); padding: 24px; grid-column: 1 / -1; }

/* ---------- built pack burst ---------- */

.pg-burst {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  z-index: 6000;
  pointer-events: none;
  perspective: 800px;
}

.pg-burst .pg-cube { width: 150px; height: 150px; animation: pg-burst-spin 1.15s cubic-bezier(.2, .8, .2, 1) forwards; }

@keyframes pg-burst-spin {
  0% { opacity: 0; transform: scale(.4) rotateX(-20deg) rotateY(0deg); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.5) rotateX(-20deg) rotateY(720deg); }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .pg-hero { grid-template-columns: 1fr; padding-top: 74px; text-align: left; }
  .pg-hero-stage { height: 280px; order: -1; }
  .pg-hero-cube { width: 132px; height: 132px; margin: -66px 0 0 -66px; }
  .pg-arm { transform: none !important; }
  .pg-ring { display: none; }
  .pg-row { grid-template-columns: auto auto auto; }
  .pg-row .pg-name { grid-column: 1 / -1; }
  .pg-row .pg-remove { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 640px) {
  .pg-bench { padding-left: 14px; padding-right: 14px; }
  .pg-panel { padding: 18px; }
  .pg-row { grid-template-columns: 1fr 1fr; gap: 12px; justify-items: center; }
  .pg-row .pg-arrow { grid-column: 1 / -1; transform: rotate(90deg); }
  .pg-slot { width: 100%; max-width: 150px; height: 110px; }
  .pg-picker-panel { margin: 0; max-height: 100vh; height: 100vh; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-hero-cube, .pg-ring, .pg-arm .pg-cube, .pg-burst .pg-cube { animation: none !important; }
  .pg-slot, .pg-cell, .pg-btn, .pg-toggle-btn { transition: none !important; }
}


/* ---------- depth pass ---------- */

.pg-row {
  transform-style: preserve-3d;
  transition: transform .22s cubic-bezier(.2, .8, .3, 1), box-shadow .22s ease, border-color .22s ease;
}

.pg-row:hover {
  transform: translateZ(14px) translateY(-2px);
  border-color: rgba(192, 138, 74, .4);
  box-shadow: inset 0 1px 0 rgba(245, 236, 221, .12), 0 20px 40px rgba(0, 0, 0, .45);
}

.pg-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(245, 236, 221, .07), transparent 42%);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}

.pg-row:hover::before { opacity: 1; }

.pg-panel {
  transform: perspective(1400px) rotateX(var(--tilt, 0deg));
  transform-origin: 50% 0;
  transition: transform .4s ease;
}

/* the plank seams and bolts that make the bench read as a real surface */
.pg-panel::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .28);
  box-shadow: inset 0 1px 0 rgba(245, 236, 221, .08);
  pointer-events: none;
}

.pg-bolt {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #d7dee4, var(--iron) 45%, #5d666e 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .7);
  pointer-events: none;
}

.pg-bolt.tl { left: 16px; top: 16px; }
.pg-bolt.tr { right: 16px; top: 16px; }
.pg-bolt.bl { left: 16px; bottom: 16px; }
.pg-bolt.br { right: 16px; bottom: 16px; }

.pg-slot:hover .pg-cube, .pg-slot:focus-visible .pg-cube { animation: pg-nudge .5s ease; }

@keyframes pg-nudge {
  0% { transform: rotateX(var(--rx, -22deg)) rotateY(var(--ry, 38deg)); }
  50% { transform: rotateX(calc(var(--rx, -22deg) - 8deg)) rotateY(calc(var(--ry, 38deg) + 26deg)) scale(1.08); }
  100% { transform: rotateX(var(--rx, -22deg)) rotateY(var(--ry, 38deg)); }
}

.pg-cell .pg-cube { pointer-events: none; }

/* the picker cell turns into a real cube while you hover it */
.pg-cell .pg-cell-3d {
  position: relative;
  width: 44px;
  height: 44px;
  perspective: 300px;
}

.pg-cell .pg-cell-3d .pg-cube {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -18px 0 0 -18px;
  opacity: 0;
  transition: opacity .16s ease;
}

.pg-cell:hover .pg-cell-3d .pg-cube, .pg-cell:focus-visible .pg-cell-3d .pg-cube { opacity: 1; }
.pg-cell:hover .pg-cell-3d img, .pg-cell:focus-visible .pg-cell-3d img { opacity: 0; }
.pg-cell .pg-cell-3d img { transition: opacity .16s ease; }

/* build button glints when it is ready to use */
.pg-btn.primary:not(:disabled) { position: relative; overflow: hidden; }

.pg-btn.primary:not(:disabled)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  left: -60px;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  animation: pg-glint 4.5s ease-in-out infinite;
}

@keyframes pg-glint {
  0%, 72% { left: -60px; }
  88%, 100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-btn.primary::after, .pg-slot:hover .pg-cube { animation: none !important; }
  .pg-row:hover, .pg-panel { transform: none !important; }
}


/* ---------- the rename field ---------- */

.pg-namewrap { min-width: 0; }

.pg-namelabel {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245, 236, 221, .66);
  margin-bottom: 7px;
}

.pg-namehint {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(245, 236, 221, .48);
}

.pg-tint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.pg-tintwheel {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, .5);
  border-radius: 9px;
  background: rgba(20, 16, 12, .55);
  cursor: pointer;
}

.pg-tintwheel::-webkit-color-swatch-wrapper { padding: 3px; }
.pg-tintwheel::-webkit-color-swatch { border: 0; border-radius: 6px; }

.pg-tinthex {
  width: 96px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(20, 16, 12, .55);
  border: 1px solid rgba(0, 0, 0, .5);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .45);
  color: var(--cream);
  font-family: inherit;
  font-size: 13px;
}

.pg-tinthex:focus { outline: none; border-color: var(--steel); }

.pg-tintclear {
  padding: 8px 12px;
  border-radius: 9px;
  background: rgba(20, 16, 12, .5);
  border: 1px solid rgba(0, 0, 0, .5);
  color: rgba(245, 236, 221, .7);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pg-tintclear:hover { color: var(--cream); border-color: rgba(192, 138, 74, .5); }
