/* One responsive presentation for temporary and persistent student portals. */
.student-showcase.student-showcase {
  display: grid; grid-template-columns: minmax(240px, .9fr) minmax(0, 1.1fr);
  gap: 1.25rem; align-items: stretch; padding: 1rem; overflow: hidden;
  border: 1px solid var(--line-strong, var(--profile-line)); border-radius: 24px;
  background: var(--surface); color: var(--text);
}
.character-stage {
  min-width: 0; padding: 1.1rem; border-radius: 18px; text-align: center;
  background: #edf6e7 url('/student-demo/growth-stage.png') center / cover;
  color: #173c31; display: flex; flex-direction: column; align-items: stretch;
}
.character-stage .profile-copy { background: rgb(255 253 246 / 88%); border-radius: 12px; padding: .5rem; }
.character-stage .eyebrow, .character-stage .growth-title { color: #244e3d; }
.character-stage h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); margin: .2rem 0; color: #173c31; overflow-wrap: anywhere; }
.character-stage .avatar, .character-stage .character-mark {
  position: relative; width: 100%; height: clamp(240px, 30vw, 360px); min-height: 240px;
  border: 0; border-radius: 0; box-shadow: none; background: none; margin: .4rem auto;
  font-size: 7rem; overflow: hidden; flex: none;
}
.character-stage .avatar-layer { image-rendering: pixelated; }
.character-stage > button { align-self: center; min-height: 48px; }
.growth-dashboard { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.growth-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .75rem; }
.student-showcase .wallet-summary, .growth-experience {
  display: flex; flex-direction: column; justify-content: center; gap: .35rem;
  padding: 1rem; margin: 0; border: 1px solid var(--line); border-radius: 16px;
  min-width: 0; background: var(--surface-2, var(--profile-surface));
}
.student-showcase .wallet-summary { grid-column: auto; }
.student-showcase .balance { font-size: clamp(1.5rem, 3vw, 2.5rem); color: var(--gold); margin: 0; overflow-wrap: anywhere; }
.growth-experience p { margin: 0; font-size: 1rem; }
.growth-equipment, .growth-achievements { border: 1px solid var(--line); border-radius: 16px; padding: 1rem; background: var(--surface); }
.growth-dashboard h3 { margin: 0 0 .7rem; font-size: 1.15rem; }
[data-growth-equipment] { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
[data-growth-equipment] > p { grid-column: 1/-1; }
.growth-item { display: flex; flex-direction: column; gap: .4rem; border-radius: 12px; padding: .8rem; background: var(--surface-2, var(--profile-surface)); overflow-wrap: anywhere; }
.growth-item-status { font-size: .85rem; }
.growth-achievement { padding: .65rem; border: 1px solid var(--line); border-radius: 10px; }
.growth-shortcuts { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: auto; }
.growth-shortcuts button { flex: 1 1 150px; min-height: 48px; }
body:has(#portalPanel:not([hidden])) .hero, body:has(#shopPanel:not([hidden])) .hero { padding-block: .5rem; }
body:has(#portalPanel:not([hidden])) .hero h1, body:has(#shopPanel:not([hidden])) .hero h1 { font-size: 1.15rem; }
body:has(#portalPanel:not([hidden])) .hero .eyebrow, body:has(#shopPanel:not([hidden])) .hero .eyebrow { display: none; }

@media (max-width: 760px) {
  .student-showcase.student-showcase { grid-template-columns: minmax(0,1fr); padding: .65rem; gap: .8rem; }
  .character-stage { padding: .8rem; }
  .character-stage .avatar, .character-stage .character-mark { height: 260px; }
  .growth-equipment, .growth-achievements { padding: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .student-showcase *, .student-showcase *::before, .student-showcase *::after { animation: none !important; transition: none !important; }
}

body:has(.student-showcase) .shell { width: min(1160px, 100% - 1rem); }

.growth-experience progress { width: 100%; height: 12px; accent-color: #287253; }

/* Keep the approved character stage; align only the surrounding work surfaces. */
.growth-equipment > h3, .growth-achievements > h3 {
  padding: .65rem .75rem;
  border-radius: 10px;
  background: var(--surface-2, var(--profile-surface));
  color: var(--text);
}
