#profile-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
}

.profile-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .05));
  border: 2px solid rgba(255, 255, 255, .12);
  border-radius: 28px;
  padding: 40px 24px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.profile-mascot {
  width: 160px;
  height: 160px;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5));
  animation: bounce 2s infinite;
}

.profile-greeting {
  font-size: var(--text-md);
  color: var(--accent);
  margin: 16px 0 4px;
}

.profile-subtitle {
  color: #aaa;
  font-size: var(--text-md);
  font-weight: var(--weight-light);
  margin-bottom: 24px;
}

.setup-stage-wrap {
  margin-bottom: 24px;
}

.setup-stage {
  display: none;
}

.setup-stage.active {
  display: block;
}

.profile-input-group {
  width: 100%;
}

.profile-input-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  color: #bbb;
  margin-bottom: 8px;
}

.profile-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(var(--accent-rgb), .45);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: var(--font);
  font-size: var(--text-lg);
  font-weight: var(--weight-light);
  text-align: center;
  outline: none;
  transition: .3s;
}

.profile-input::placeholder {
  color: rgba(255, 255, 255, .3);
}

.profile-input:focus {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .08);
}

.avatar-picker {
  width: 100%;
}

.avatar-picker label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  color: #bbb;
  margin-bottom: 10px;
}

.avatar-options {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px;
  justify-content: center;
}

.avatar-option {
  background: rgba(255, 255, 255, .06);
  border: 2px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: 10px;
  cursor: pointer;
  transition: .3s;
  text-align: center;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.avatar-option .poke-sprite {
  width: 80px;
  height: 80px;
  image-rendering: pixelated;
}

.avatar-option span {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  color: #888;
  margin-top: -8px;
  direction: ltr;
}

.avatar-option:hover:not(.locked) {
  border-color: var(--avatar-color, var(--accent));
  transform: translateY(-2px);
}

.avatar-option.selected {
  border-color: var(--avatar-color, var(--accent));
  background: color-mix(in srgb, var(--avatar-color, var(--accent)) 12%, transparent);
}

.avatar-option.selected span {
  color: var(--avatar-color, var(--accent));
  font-weight: var(--weight-medium);
}

.avatar-option.locked {
  opacity: .5;
  cursor: default;
}

.avatar-option.locked.selected {
  opacity: 1;
}

.avatar-option.flash {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), .4);
}

/* Setup mode: bigger fonts */
.profile-card.setup-mode .profile-greeting {
  font-size: var(--text-lg);
}

.profile-card.setup-mode .profile-subtitle {
  font-size: var(--text-lg);
}

.profile-card.setup-mode .profile-input-group label {
  font-size: var(--text-md);
}

.profile-card.setup-mode .profile-input {
  font-size: var(--text-lg);
}

.profile-card.setup-mode .avatar-picker label {
  font-size: var(--text-md);
}

.profile-card.setup-mode .avatar-option span {
  font-size: var(--text-md);
}

/* Evolution progress bar */
.evo-progress {
  margin: 16px 0 8px;
}

.evo-stages {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
  padding: 0 4px;
}

.evo-stage {
  text-align: center;
}

.evo-stage:not(.reached) {
  opacity: 0.4;
}

.evo-stage.reached {
  opacity: 1;
}

.evo-stage.current {
  transform: scale(1.1);
}

.evo-stage .poke-sprite {
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}

.evo-stage.current .poke-sprite {
  animation: bounce 2s infinite;
}

.evo-stage span {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  color: #ccc;
}

.evo-stage .evo-stage-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  color: #888;
  margin-top: 2px;
}

.evo-stage .evo-stage-stars .mi {
  font-size: inherit;
}

.evo-stage.reached .evo-stage-stars {
  color: var(--accent);
}

.evo-bar-wrap {
  position: relative;
}

.evo-bar-track {
  width: 100%;
  height: 12px;
  background: rgba(255,255,255,.1);
  border-radius: 6px;
  overflow: hidden;
}

.evo-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 6px;
  transition: width 1.2s cubic-bezier(.25,.8,.25,1);
  box-shadow: 0 0 10px rgba(var(--accent-rgb),.5);
  position: relative;
  overflow: hidden;
}

.evo-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.4) 50%, transparent 100%);
  animation: evoShimmer 2s ease-in-out infinite;
}

@keyframes evoShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
}

.stat-card {
  width: 90px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  padding: 14px 8px;
}

.stat-icon {
  font-size: var(--text-lg);
  display: block;
  margin-bottom: 4px;
}

.stat-value {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  color: #888;
  display: block;
  margin-top: 2px;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
