/* ========== صفحه ورود ========== */
.boot { min-height: 100dvh; display: grid; place-items: center; }
.boot img { width: 64px; animation: pulse 1.2s var(--ease) infinite alternate; }
@keyframes pulse { to { transform: scale(1.12) rotate(8deg); } }

.auth { min-height: 100dvh; display: grid; grid-template-columns: 1fr minmax(360px, 480px); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; gap: var(--sp-5); padding: var(--sp-7) clamp(var(--sp-5), 5vw, var(--sp-8)); background: var(--surface); }
.auth-head { display: grid; gap: var(--sp-2); }
.auth-head h1 { font-size: var(--fs-xl); margin-top: var(--sp-3); }
.auth-form { display: grid; gap: var(--sp-3); }
.auth-switch { color: var(--ink-2); }
.linkish { background: none; border: 0; color: var(--teal-d); font-weight: 700; cursor: pointer; padding: 0; }
.auth-practice { font-size: var(--fs-sm); color: var(--ink-3); }
.auth-practice:hover { color: var(--teal-d); }
.auth-art { background: var(--teal); position: relative; overflow: hidden; display: grid; place-items: center;
  background-image: radial-gradient(circle at 20% 20%, oklch(0.6 0.1 196) 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, oklch(0.6 0.1 196) 0 2px, transparent 3px);
  background-size: 48px 48px, 72px 72px; }
.auth-tiles { display: grid; grid-template-columns: repeat(3, 150px); gap: 14px; transform: rotateX(48deg) rotateZ(-32deg); transform-style: preserve-3d; }
.auth-tile { height: 190px; background: var(--paper); border-radius: 10px; box-shadow: 0 30px 40px -20px oklch(0.2 0.06 210 / 0.6); display: grid; grid-template-rows: 44px 1fr; overflow: hidden; animation: floatT 5s var(--ease) infinite alternate; animation-delay: calc(var(--d, 0) * 1s); }
.auth-tile i { display: block; }
.auth-tile span { display: grid; place-items: center; font-weight: 800; color: var(--ink); font-size: 1.05rem; padding: 8px; text-align: center; }
.auth-tile.t0 i { background: oklch(0.56 0.2 27); } .auth-tile.t1 { --d: 0.6; } .auth-tile.t1 i { background: oklch(0.42 0.13 262); }
.auth-tile.t2 { --d: 1.2; } .auth-tile.t2 i { background: oklch(0.62 0.17 350); } .auth-tile.t3 { --d: 0.3; } .auth-tile.t3 i { background: oklch(0.55 0.12 160); }
.auth-tile.t4 { --d: 0.9; } .auth-tile.t4 i { background: oklch(0.78 0.09 215); } .auth-tile.t5 { --d: 1.5; } .auth-tile.t5 i { background: oklch(0.72 0.16 55); }
@keyframes floatT { to { transform: translateZ(22px); } }
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: 200px 1fr; }
  .auth-tiles { grid-template-columns: repeat(3, 90px); } .auth-tile { height: 110px; grid-template-rows: 26px 1fr; } .auth-tile span { font-size: 0.75rem; }
  .auth-panel { padding: var(--sp-5); border-radius: var(--r-lg) var(--r-lg) 0 0; margin-top: -24px; position: relative; }
}

/* ========== لابی ========== */
.page-head { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.page-head h1 { font-size: var(--fs-xl); }
.page-head p { max-width: 62ch; }
.eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.02em; color: var(--teal-d); }
.lobby-greet { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); font-weight: 700; font-size: var(--fs-lg); }
.room-banner { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--saffron-l); border: 1px solid var(--saffron); border-radius: var(--r-md); color: var(--ink); margin-bottom: var(--sp-4); }
.room-banner b { margin-inline-start: auto; color: var(--teal-d); }
.lobby-grid { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-6); align-items: start; }
.lobby-main { display: grid; gap: var(--sp-5); }
.quick {
  position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--teal); color: var(--on-accent);
  padding: clamp(var(--sp-5), 4vw, var(--sp-7)); display: grid; gap: var(--sp-5); min-height: 260px; align-content: center;
  box-shadow: 0 2px 0 var(--teal-dd), var(--sh-md);
}
.quick::before { content: ''; position: absolute; inset: 0; opacity: 0.16; pointer-events: none;
  background: conic-gradient(from 45deg at 50% 50%, var(--on-accent) 0 25%, transparent 0 50%, var(--on-accent) 0 75%, transparent 0) 0 0 / 28px 28px;
  mask-image: linear-gradient(to left, transparent 30%, black); }
.quick-copy { display: grid; gap: var(--sp-2); position: relative; max-width: 30ch; }
.quick .eyebrow { color: var(--saffron); }
.quick h1 { font-size: var(--fs-2xl); font-weight: 900; }
.quick p { color: color-mix(in oklch, var(--on-accent), var(--teal) 25%); }
.quick-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; position: relative; }
.quick .seg { background: var(--teal-dd); border-color: transparent; }
.quick .seg button { color: color-mix(in oklch, var(--on-accent), var(--teal) 30%); }
.quick .seg button[aria-pressed='true'] { background: var(--on-accent); color: oklch(0.33 0.07 205); }
.quick-deco { position: absolute; inset-inline-end: 6%; top: 50%; translate: 0 -50%; width: 180px; height: 180px; perspective: 600px; pointer-events: none; }
.quick-deco .die { position: absolute; width: 84px; height: 84px; border-radius: 18px; background: var(--die-face);
  box-shadow: inset -6px -8px 0 var(--die-side), 0 20px 30px -12px oklch(0.2 0.06 210 / 0.6);
  background-image: radial-gradient(circle, var(--pom) 0 7px, transparent 8px), radial-gradient(circle, var(--pom) 0 7px, transparent 8px), radial-gradient(circle, var(--pom) 0 7px, transparent 8px);
  background-size: 84px 84px; background-position: -18px -18px, 0 0, 18px 18px; background-repeat: no-repeat; }
.quick-deco .d1 { top: 10px; left: 10px; transform: rotate(-14deg); animation: deco 4s var(--ease) infinite alternate; }
.quick-deco .d2 { top: 80px; left: 80px; transform: rotate(18deg); animation: deco 4s var(--ease) infinite alternate-reverse; background-image: radial-gradient(circle, var(--pom) 0 7px, transparent 8px), radial-gradient(circle, var(--pom) 0 7px, transparent 8px); background-position: -18px -18px, 18px 18px; }
@keyframes deco { to { translate: 0 -10px; rotate: 6deg; } }
.quick-searching { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; position: relative; }
.quick-searching h2 { font-size: var(--fs-lg); }
.quick-searching .btn { margin-inline-start: auto; }
.radar { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; position: relative; background: var(--teal-dd); font-size: 36px; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--saffron); animation: ping 2s var(--ease) infinite; }
.radar i:nth-child(2) { animation-delay: 1s; }
.radar.found { background: var(--saffron); }
@keyframes ping { from { transform: scale(0.8); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
@media (max-width: 640px) { .quick-deco { display: none; } .quick-actions .btn.lg { width: 100%; } }

.play-with-friends { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-4); }
.pwf { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); display: grid; gap: var(--sp-3); align-content: start; }
.pwf h2 { font-size: var(--fs-lg); }
.pwf-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }
.seg.small button { min-height: 34px; padding: 0 10px; font-size: var(--fs-sm); }
.pwf.join { background: var(--paper-2); border-style: dashed; border-color: var(--line-2); }
.code-input { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.code-box { width: 100%; aspect-ratio: 0.85; max-height: 58px; text-align: center; font-size: 1.5rem; font-weight: 800; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); outline: none; transition: border-color 140ms, transform 140ms var(--ease); }
.code-box:focus { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 4px 0 var(--teal-l); }
.practice-link { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-lg); color: var(--ink); border: 1px solid var(--line); background: var(--surface); transition: transform 180ms var(--ease); }
.practice-link:hover { transform: translateY(-2px); }
.practice-link > span:nth-child(2) { display: grid; flex: 1; }
.practice-link small { color: var(--ink-3); }
.pl-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--saffron-l); color: var(--gold-ink); display: grid; place-items: center; }

.lobby-side { display: grid; gap: var(--sp-6); position: sticky; top: 88px; }
.side-block h3 { font-size: var(--fs-md); margin-bottom: var(--sp-3); }
.side-head { display: flex; justify-content: space-between; align-items: baseline; }
.friend-strip { display: flex; gap: var(--sp-3); overflow-x: auto; padding-bottom: var(--sp-2); scrollbar-width: none; }
.friend-bubble { display: grid; justify-items: center; gap: 4px; width: 64px; flex: none; color: var(--ink); font-size: var(--fs-xs); text-align: center; }
.friend-bubble .avatar { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ok); font-size: 28px; }
.friend-bubble span:nth-child(2) { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-bubble small { color: var(--teal-d); }
.empty-line { font-size: var(--fs-sm); }
.mini-lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mini-lb li { display: grid; grid-template-columns: 24px 34px 1fr auto; align-items: center; gap: var(--sp-2); padding: 6px 8px; border-radius: 10px; }
.mini-lb li.me { background: var(--teal-l); }
.mini-lb a { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-lb .pos { color: var(--ink-3); font-weight: 700; text-align: center; }
/* حالت خالیِ «برترین‌ها»: یک کارت وسط‌چین به‌جای ریختن متن در ستون ۲۴ پیکسلی */
.mini-lb li.mini-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 124px; padding: var(--sp-4) var(--sp-3); text-align: center; border: 1px dashed var(--line-2, var(--line)); border-radius: var(--r-md); background: var(--paper-2); }
.mini-empty b { font-size: var(--fs-sm); color: var(--ink); }
.mini-empty .muted { font-size: var(--fs-xs); line-height: 1.7; max-width: 26ch; text-wrap: balance; }
.mini-empty-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron-l); color: var(--gold-ink); }
.friend-strip > .empty-line { flex: 1; margin: 0; }
@media (max-width: 1000px) { .lobby-grid { grid-template-columns: 1fr; } .lobby-side { position: static; grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .play-with-friends, .lobby-side { grid-template-columns: 1fr; } }

/* ========== دوستان ========== */
.friends-page { max-width: 760px; }
.search-box { display: flex; align-items: center; gap: var(--sp-2); padding-inline-start: var(--sp-4); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); margin-bottom: var(--sp-3); }
.search-box .input { border: 0; box-shadow: none; padding-inline-start: 0; }
.search-box .icon { color: var(--ink-3); }
.search-results { display: grid; gap: 2px; margin-bottom: var(--sp-5); }
.search-results:not(:empty) { padding: var(--sp-2); background: var(--paper-2); border-radius: var(--r-md); }
.tabs { margin-bottom: var(--sp-3); }
.tabs button { display: inline-flex; gap: 6px; align-items: center; }
.tabs .count { color: var(--ink-3); font-size: var(--fs-xs); }
.people-list { display: grid; gap: 2px; }
.person { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border-radius: var(--r-md); }
.person:hover { background: var(--paper-2); }
.person-info { flex: 1; min-width: 0; display: grid; }
.person-name { color: var(--ink); font-weight: 700; }
.person-sub { font-size: var(--fs-xs); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-actions { display: flex; gap: var(--sp-2); align-items: center; }
.empty { display: grid; gap: var(--sp-2); justify-items: center; text-align: center; padding: var(--sp-6) var(--sp-4); color: var(--ink-2); }
.empty b { color: var(--ink); font-size: var(--fs-lg); }
.empty.big { padding: var(--sp-8) var(--sp-4); }

/* ========== رتبه‌بندی ========== */
.lb-page { max-width: 820px; }
.lb-controls { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.lb-controls select { width: auto; min-width: 180px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.pod { display: grid; justify-items: center; gap: 4px; color: var(--ink); text-align: center; }
.pod b { font-size: var(--fs-md); }
.pod > span.num { font-size: var(--fs-sm); color: var(--ink-2); }
.pod-step { width: 100%; display: grid; place-items: center; border-radius: var(--r-md) var(--r-md) 0 0; margin-top: var(--sp-2); font-weight: 900; font-size: 2rem; color: var(--on-accent); }
.pod.p1 .pod-step { height: 120px; background: var(--saffron); color: var(--on-gold); }
.pod.p2 .pod-step { height: 88px; background: var(--teal); }
.pod.p3 .pod-step { height: 64px; background: oklch(0.6 0.1 50); }
.pod.p1 .avatar { box-shadow: 0 0 0 4px var(--saffron); }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lb-list li { display: grid; grid-template-columns: 40px 34px 1fr auto 70px; gap: var(--sp-3); align-items: center; padding: 10px var(--sp-3); border-radius: var(--r-md); }
.lb-list li:nth-child(odd) { background: var(--paper-2); }
.lb-list li.me { background: var(--teal-l); }
.lb-list .pos { font-weight: 700; color: var(--ink-3); text-align: center; }
.lb-name { display: grid; color: var(--ink); font-weight: 700; min-width: 0; }
.lb-name small { color: var(--ink-3); font-weight: 400; font-size: var(--fs-xs); }
.lb-stat { color: var(--ink-3); font-size: var(--fs-sm); }
.lb-list b { text-align: left; }
.lb-me { position: sticky; bottom: calc(var(--nav-h) + var(--sp-3)); margin-top: var(--sp-4); display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--toast-bg); color: var(--on-accent); border-radius: var(--r-md); box-shadow: var(--sh-lg); }
.lb-me > b { margin-inline-start: auto; }
@media (min-width: 821px) { .lb-me { bottom: var(--sp-4); } }
@media (max-width: 640px) { .lb-stat { display: none; } .lb-list li { grid-template-columns: 32px 34px 1fr 60px; } }

/* ========== پروفایل ========== */
.profile-page { max-width: 860px; display: grid; gap: var(--sp-6); }
.profile-hero { display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-5); align-items: center; }
.ph-info { display: grid; gap: var(--sp-1); }
.ph-info h1 { font-size: var(--fs-xl); }
.ph-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-2); }
.ph-rating { display: grid; justify-items: center; padding: var(--sp-4) var(--sp-5); background: var(--saffron-l); border-radius: var(--r-lg); border: 1px solid var(--saffron); }
.ph-rating .label { font-size: var(--fs-xs); font-weight: 700; color: var(--gold-ink); }
.ph-rating b { font-size: 2.4rem; font-weight: 900; line-height: 1.1; }
.ph-rating .rank { font-size: var(--fs-sm); color: var(--ink-2); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0; border-block: 1px solid var(--line); }
.stat-row > div { padding: var(--sp-4) var(--sp-3); }
.stat-row > div + div { border-inline-start: 1px solid var(--line); }
.stat-row dt { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.stat-row dd { margin: 0; font-size: var(--fs-lg); font-weight: 800; }
.profile-edit { display: none; gap: var(--sp-4); padding: var(--sp-5); background: var(--paper-2); border-radius: var(--r-lg); }
.profile-edit.open { display: grid; }
.avatar-grid { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.avatar-grid .avatar { cursor: pointer; width: 52px; height: 52px; font-size: 28px; }
.avatar-grid .avatar[aria-checked='true'] { box-shadow: 0 0 0 3px var(--teal); background: var(--teal-l); }
.recent h2 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.recent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.recent-list li { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--sp-3); align-items: center; padding: var(--sp-3); border-radius: var(--r-md); }
.recent-list li:hover { background: var(--paper-2); }
.recent-list li > div { display: grid; }
.place { display: grid; place-items: center; height: 36px; border-radius: 10px; font-weight: 800; font-size: var(--fs-sm); background: var(--paper-3); }
.place.p1 { background: var(--saffron); color: var(--on-gold); }
.place.p2 { background: var(--teal-l); color: var(--teal-dd); }
.delta { font-weight: 800; }
.delta.up { color: var(--ok-ink); }
.delta.down { color: var(--pom); }
@media (max-width: 640px) { .profile-hero { grid-template-columns: auto 1fr; } .ph-rating { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; align-items: center; justify-items: start; gap: var(--sp-3); } .avatar.lg { width: 72px; height: 72px; font-size: 40px; } }

/* ========== اتاق ========== */
.room-page { display: grid; gap: var(--sp-5); }
.room-top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap; padding-bottom: var(--sp-5); border-bottom: 1px dashed var(--line-2); }
.room-code-block { display: grid; gap: var(--sp-2); }
.room-code { font-size: clamp(2.4rem, 8vw, 4rem); font-weight: 900; letter-spacing: 0.12em; line-height: 1; background: none; border: 0; padding: 0; cursor: copy; color: var(--ink); text-align: start; direction: ltr; justify-self: start; }
.room-link { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; color: var(--ink-2); font-size: var(--fs-sm); }
.room-count { display: grid; justify-items: end; }
.room-count b { font-size: var(--fs-xl); }
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: start; }
.room-grid > div { display: grid; gap: var(--sp-5); }
.seats { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.seat { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); animation: viewIn 400ms var(--ease) backwards; animation-delay: calc(var(--i) * 50ms); }
.seat > div { flex: 1; display: grid; }
.seat small { color: var(--ink-3); }
.seat.empty { background: transparent; border-style: dashed; }
.seat.empty b { color: var(--ink-3); font-weight: 600; }
.avatar.ghost { background: transparent; border-style: dashed; color: var(--ink-3); font-size: 18px; }
.room-settings, .room-invite-friends, .room-chat { display: grid; gap: var(--sp-2); }
.room-settings h3, .room-invite-friends h3, .room-chat h3 { font-size: var(--fs-md); margin-bottom: var(--sp-1); }
.setting { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 48px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.setting select { width: auto; min-height: 38px; font-size: var(--fs-sm); }
.room-invite-friends ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.room-invite-friends li { display: flex; align-items: center; gap: var(--sp-3); }
.room-invite-friends li span:nth-child(2) { flex: 1; }
.chat-log { height: 180px; overflow-y: auto; background: var(--paper-2); border-radius: var(--r-md); padding: var(--sp-3); display: grid; align-content: start; gap: 4px; font-size: var(--fs-sm); }
.chat-log .sys { color: var(--ink-3); font-size: var(--fs-xs); }
.chat-form { display: flex; gap: var(--sp-2); }
.room-bar { position: sticky; bottom: calc(var(--nav-h) + var(--sp-3)); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); }
@media (min-width: 821px) { .room-bar { bottom: var(--sp-4); } }
@media (max-width: 820px) { .room-grid { grid-template-columns: 1fr; } .room-count { justify-items: start; } }

.join-page { display: grid; place-items: center; min-height: 60vh; }
.join-card { width: min(440px, 100%); display: grid; gap: var(--sp-3); justify-items: center; text-align: center; padding: var(--sp-6); background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-md); }
.join-card h1 { font-size: var(--fs-xl); }
.join-card .room-code { cursor: default; justify-self: center; }
.join-members { display: flex; gap: var(--sp-2); }
.error { color: var(--pom); font-size: var(--fs-sm); }

/* ========== تم ========== */
.auth-panel { position: relative; }
.auth-theme { position: absolute; top: var(--sp-4); inset-inline-end: var(--sp-4); }
.topbar-theme { margin-inline-start: calc(var(--sp-2) * -1); }

/* ========== آپلود عکس پروفایل ========== */
.avatar.xl { width: 104px; height: 104px; font-size: 58px; border-radius: 34px; }
.avatar-drop { display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-4); border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface); transition: border-color 200ms var(--ease), background-color 200ms var(--ease); }
.avatar-drop.over { border-color: var(--teal); background: var(--teal-l); }
.avatar-drop .avatar.xl { box-shadow: 0 0 0 4px var(--paper-2), 0 0 0 5px var(--line-2); }
.avatar-drop.has-photo .avatar.xl { box-shadow: 0 0 0 4px var(--paper-2), 0 0 0 6px var(--teal); }
.avatar-drop-copy { display: grid; gap: var(--sp-2); justify-items: start; }
.avatar-drop-copy small { max-width: 34ch; }
.avatar-drop label.btn { cursor: pointer; }
@media (max-width: 520px) { .avatar-drop { flex-direction: column; text-align: center; } .avatar-drop-copy { justify-items: center; } }

/* ========== انتخاب نقشه ========== */
.map-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: var(--sp-2); width: 100%; }
.map-opt { display: grid; gap: 2px; justify-items: center; text-align: center; padding: var(--sp-3) var(--sp-2) var(--sp-2); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color 180ms var(--ease), background-color 180ms var(--ease), transform 180ms var(--ease); }
.map-opt:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--line-2); }
.map-opt[aria-checked='true'] { border-color: var(--teal); background: var(--teal-l); box-shadow: inset 0 0 0 1px var(--teal); }
.map-opt:disabled { cursor: default; opacity: 0.75; }
.map-opt b { font-size: var(--fs-sm); }
.map-opt small { font-size: 0.7rem; color: var(--ink-3); line-height: 1.4; }
.map-mini { width: 100%; height: 64px; margin-bottom: 6px; }
.map-mini .in { fill: color-mix(in oklch, var(--teal), transparent 82%); }
.map-mini .t { fill: var(--line-2); }
.map-mini .t.street { fill-opacity: 0.95; }
.map-mini .t.go { fill: var(--saffron); }
.map-mini .t.jail, .map-mini .t.gotojail { fill: var(--pom); }
.map-mini .t.parking { fill: var(--teal); }
.map-opt[aria-checked='true'] .map-mini .t:not(.street) { filter: brightness(1.1); }
.pwf-block { display: grid; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }
.setting.stack { flex-direction: column; align-items: stretch; padding-block: var(--sp-2); }
