/* photoedit.css — photo silhouette editor (.pe-) */
.pe-root { overflow: hidden; }
.pe-step { position: absolute; inset: 0; }
.pe-btn { min-height: 48px; height: 52px; padding: 0 12px; border-radius: 24px; font-size: 17px; flex: 1; min-width: 0; }
.pe-row { position: absolute; left: 14px; right: 14px; display: flex; gap: 8px; align-items: center; }
.pe-plates { position: absolute; top: 64px; left: 42px; display: flex; gap: 12px; }
.pe-plate { position: relative; width: 150px; height: 150px; border: 4px solid var(--navy); border-radius: 18px; overflow: hidden;
  box-shadow: 0 4px 0 rgba(29,43,107,.5); background: var(--cream); }
.pe-plate.sil { background: linear-gradient(#5fe0f0, #19a9c8); }
.pe-plate canvas { width: 100%; height: 100%; display: block; }
.pe-ptag { position: absolute; left: 6px; top: 3px; font-size: 14px; -webkit-text-stroke: 3px var(--navy); }
.pe-grid { position: absolute; left: 22px; top: 226px; width: 352px; height: 342px; padding: 8px; overflow-y: auto; overflow-x: hidden;
  display: grid; grid-template-columns: repeat(4, 78px); grid-auto-rows: 114px; gap: 6px 8px; align-content: start;
  scrollbar-width: none; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.pe-grid::-webkit-scrollbar { display: none; }
.pe-tile { width: 78px; height: 114px; cursor: pointer; }
.pe-tile .pe-tbox { transition: transform .12s cubic-bezier(.3,1.6,.5,1); }
.pe-tile:active .pe-tbox { transform: scale(.93); }
.pe-tbox { position: relative; width: 78px; height: 78px; border: 3px solid var(--navy); border-radius: 14px; background: #d9ecff;
  display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 3px 0 rgba(29,43,107,.5); }
.pe-tbox canvas { width: 100%; height: 100%; display: block; }
.pe-tile.sel .pe-tbox { box-shadow: 0 0 0 4px var(--yellow), 0 0 0 7px var(--navy); }
.pe-tile.special .pe-tbox { background: var(--yellow); }
.pe-tile.special.c2 .pe-tbox { background: var(--cyan); }
.pe-tile.special.c3 .pe-tbox { background: #ff9fcb; }
.pe-glyph { font-size: 46px; line-height: 1; color: var(--navy); font-weight: 900; }
.pe-tlabel { margin-top: 4px; text-align: center; font-size: 13px; line-height: 16px; font-weight: 900; color: #fff;
  -webkit-text-stroke: 3px var(--navy); paint-order: stroke fill; white-space: normal; overflow-wrap: break-word; margin-left: -3px; margin-right: -3px;
  max-height: 32px; overflow: hidden; text-wrap: balance; }
.pe-hint { position: absolute; left: 20px; right: 20px; text-align: center; font-size: 14px; line-height: 17px; -webkit-text-stroke: 3px var(--navy); }
.pe-count { position: absolute; right: 48px; font-size: 16px; -webkit-text-stroke: 3.5px var(--navy); }
.pe-board { position: absolute; left: 48px; width: 300px; height: 300px; border: 4px solid var(--navy); border-radius: 14px; background: var(--cream);
  box-shadow: 0 4px 0 rgba(29,43,107,.5); touch-action: none; overflow: hidden; }
.pe-board canvas { width: 292px; height: 292px; display: block; touch-action: none; }
.pe-keys { position: absolute; left: 14px; right: 14px; text-align: center; font-size: 14px; line-height: 18px; -webkit-text-stroke: 3px var(--navy); }
.pe-round { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 4px solid var(--navy); background: var(--cream); color: var(--navy);
  font-family: var(--font); font-size: 30px; font-weight: 900; line-height: 1; display: flex; align-items: center; justify-content: center;
  padding: 0; cursor: pointer; box-shadow: 0 4px 0 rgba(29,43,107,.5); }
.pe-round:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(29,43,107,.5); }
.pe-input { position: absolute; left: 48px; width: 300px; }
