/* AFTER SCHOOL / 60 — E-owned supplementary UX layer for A's player-growth PROTOTYPE.
 * Load AFTER engine/a-player-growth.css. No game state, XP, timing, or Save edits.
 * The A screen stays a preview until the authoritative C/D contract is integrated.
 */
body[data-ui-panel="profile"] #as60-player-growth-root {
  min-width: 0;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.45;
}
body[data-ui-panel="profile"] #as60-player-growth-root :is(.a-pg-layout,.a-pg-grid,.a-pg-sheet,.a-pg-demo,.a-pg-stat,.a-pg-gates,.a-pg-people) {
  min-width: 0;
}
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-mode {
  box-sizing: border-box;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
  padding: 10px 12px;
  margin: 8px 0;
  border: 2px solid #f8cc8a;
  border-left-width: 6px;
  border-radius: 7px;
  color: #fff5df;
  background: #5b3e3f;
  overflow-wrap: anywhere;
}
/* C-approved public data is NOT equivalent to a confirmed saved snapshot.
   This cool style only distinguishes public projection from editable preview. */
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg:has(.a-pg-stat .a-pg-button:disabled) .a-pg-mode {
  color: #eaf9ff;
  background: #28465a;
  border-color: #a4deef;
}
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-stat {
  box-sizing: border-box;
  border-color: #9c88af;
  background: #39354e;
  gap: 6px 8px;
  align-content: start;
}
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-stat strong {
  font-size: 1rem;
  line-height: 1.4;
}
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-level {
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: nowrap;
}
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-stat small,
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-gate small,
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-note {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #f1e4f2;
  overflow-wrap: anywhere;
}
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-gate {
  border-color: #97899e;
  overflow-wrap: anywhere;
}
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-gate b,
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-gate span {
  font-size: 0.9rem;
  line-height: 1.45;
}
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-gate[data-gate="locked"] {
  border-left: 5px solid #f6b9b9;
  background: #493544;
}
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-gate[data-gate="unlocked"] {
  border-left: 5px solid #a1dabc;
}
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-button {
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  padding: 10px 8px;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-button:focus-visible {
  outline: 3px solid #ffe2a9;
  outline-offset: 2px;
}
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-button:disabled {
  opacity: 0.74;
  border-style: dashed;
}
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-people {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
}
body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-meter {
  height: 9px;
  border: 1px solid #887f91;
}
@media(max-width:680px) {
  body[data-ui-panel="profile"] #as60-player-growth-root .a-pg { padding: 12px 10px 16px; }
  body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-layout { grid-template-columns: minmax(0,1fr); gap: 12px; }
  body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-stat { padding: 9px 8px; }
  body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-people { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:345px) {
  body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-stat { grid-template-columns:minmax(0,1fr); }
  body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-level { grid-column: 1/-1; }
}
@media(max-height:430px) and (orientation:landscape) {
  body[data-ui-panel="profile"] #as60-player-growth-root .a-pg { padding: 7px 11px 12px; }
  body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-header { margin-bottom: 7px; }
  body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-layout { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-grid { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion:reduce) {
  body[data-ui-panel="profile"] #as60-player-growth-root * { transition: none !important; animation: none !important; }
}
@media(prefers-contrast:more) {
  body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-stat,
  body[data-ui-panel="profile"] #as60-player-growth-root .a-pg-gate { border-color: #f1e3ff; }
}
