/* 프로필 창: 상점과 같은 청록·크림 톤. */

/* 모드 카드 위 한 줄의 작은 보조 버튼: 왼쪽에 숙련도와 상점(알약), 오른쪽 끝에 업데이트 공지(알약)와 설정(동그라미).
   얇고 흐린 테두리로 모드 카드보다 덜 눈에 띄게. shop.css·style.css 의 고정 위치 버튼 규칙보다 우선하도록 :is(#id) 로 쓴다. */
.menu-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
#menu.practice-view .menu-nav { display: none; }
#menu:not(.practice-view) :is(#select-title, #difficulty-label) { display: none; }
.menu-nav > :is(#profile-open, #shop-open, #analytics-settings) {
  position: static; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 5px;
  border: 2px solid #4f666e; border-radius: 999px; background: #22363fcc; color: var(--entry-text);
  font: 17px/1 'Jua', sans-serif; white-space: nowrap; cursor: pointer;
  box-shadow: none; transition: background .15s, border-color .15s;
}
.menu-nav > :is(#profile-open, #shop-open, #analytics-settings):active { background: #1c2e36; box-shadow: none; }
.menu-nav > :is(#profile-open, #shop-open, #analytics-settings):focus-visible { outline: 3px solid var(--entry-text); outline-offset: 3px; }
.menu-nav #analytics-settings { justify-content: center; width: 44px; padding: 0; }
.menu-nav #analytics-settings svg { width: 22px; height: 22px; }
.menu-nav :is(.profile-nav-icon, .shop-keeper-icon) { width: 32px; height: 32px; border-radius: 50%; }
.profile-nav-icon { display: block; flex: 0 0 auto; object-fit: cover; background: #152e38; }
.menu-nav :is(.profile-nav-info, .shop-nav-info) { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.profile-nav-level { color: #b9e39e; font-variant-numeric: tabular-nums; }
.menu-nav .shop-nav-coins { font-size: 14px; line-height: 1; }
@media (hover: hover) {
  .menu-nav > :is(#profile-open, #shop-open, #analytics-settings):hover { background: #2f4853; border-color: #88a9a5; color: var(--entry-text); }
}

#profile-dialog {
  --profile-line: #9c855044; --profile-muted: #93acaf; --profile-gold: #d7bd80;
  width: min(960px, calc(100% - 48px)); max-height: calc(100dvh - 40px); padding: 0; overflow: hidden;
  border: 1px solid #a68b56; border-radius: 13px; background: #122830; color: var(--entry-text);
  font-family: 'Jua', sans-serif; box-shadow: 0 24px 90px #0009, inset 0 0 0 4px #091e2580; scrollbar-color: #647d7c #122830;
}
#profile-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
#profile-dialog::backdrop { background: #08151cd6; backdrop-filter: blur(5px); }
#profile-dialog button { font-family: inherit; cursor: pointer; }
#profile-dialog button:focus-visible { outline: 2px solid #c4e2ba; outline-offset: 3px; }
.profile-header { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--profile-line); background: #172f37; box-shadow: inset 0 1px #e1cd9414; }
.profile-avatar { width: 48px; height: 48px; border: 1px solid #aa905b80; border-radius: 10px; background: #152e38; object-fit: cover; }
.profile-heading { flex: 1; min-width: 0; }
.profile-eyebrow { margin: 0 0 5px; color: var(--profile-gold); font: 700 9px/1.3 sans-serif; letter-spacing: 2px; }
#profile-title { margin: 0; font-size: 26px; font-weight: 400; line-height: 1.1; }
.profile-close { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--profile-muted); font-size: 28px; line-height: 1; }

.profile-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px 20px; }
.profile-level { padding: 14px 16px; border: 1px solid var(--profile-line); border-radius: 10px; background: #172f37; }
.profile-level-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.profile-level h2 { margin: 0; color: var(--profile-muted); font-size: 15px; font-weight: 400; }
.profile-level h2 strong { margin-left: 6px; color: #b9e39e; font-size: 28px; font-weight: 400; }
.profile-xp-text { color: var(--entry-text); font-size: 14px; font-variant-numeric: tabular-nums; }
.profile-xp-bar { height: 12px; margin: 10px 0 8px; overflow: hidden; border: 1px solid #0b1a20; border-radius: 6px; background: #0d1f26; }
#profile-xp-fill { width: 0; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #7fc46a, #b9e39e); transition: width .3s; }
.profile-xp-note { margin: 0; color: #80999b; font-size: 12px; }
.profile-xp-note b { color: #cab784; font-weight: 400; }

.profile-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 16px; padding: 12px 24px; border-top: 1px solid var(--profile-line); background: #172f37; }
.profile-footer p { margin: 0; color: #80999b; font-size: 12px; }

@media (hover: hover) {
  .profile-close:hover { background: #2c474d; color: var(--entry-text); }
}
@media (prefers-reduced-motion: reduce) {
  .menu-nav > :is(#profile-open, #shop-open, #analytics-settings), #profile-xp-fill { transition: none; }
}
