/* ============================================================
   profile.css — profile window (owner's reference, 1.20) and the
   title screen's "Pantalla completa" button.

   Its own file because Cloudflare keeps style.css for a week under
   ?v=1.20: a new file reaches visitors at once (see home-profile.js).
   ============================================================ */

/* ---------- window ---------- */
#menu .profile-panel.pw {
  --pw-line: rgba(92, 146, 214, .24);
  --pw-card: linear-gradient(180deg, rgba(15, 23, 40, .94), rgba(9, 14, 26, .96));
  --pw-blue: #3d9cff;
  --pw-soft: #9fb0c6;
  width: min(1440px, calc(100vw - 32px));
  height: min(920px, calc(100vh - 32px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(92, 146, 214, .38);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 38% 30%, rgba(34, 86, 170, .22), transparent 55%),
    linear-gradient(180deg, #0b111e, #060a13);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
  color: #e8eef6;
  font-family: var(--ui-font);
}
.pw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#menu .pw-close { position: absolute; top: 10px; right: 12px; z-index: 6; width: 38px; height: 38px; border-radius: 8px; color: var(--pw-soft); font-size: 26px; line-height: 1; }
.pw-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); height: 100%; }
.pw svg .pw-fill-dot { fill: currentColor; }

/* ---------- side menu ---------- */
.pw-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  padding: 16px 12px;
  border-right: 1px solid rgba(92, 146, 214, .16);
  background: rgba(5, 9, 17, .92);
}
.pw-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: #dfe6f0;
  font: 500 18px/1.1 var(--ui-font);
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.pw-nav-item svg { flex: 0 0 auto; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-nav-item svg.pw-fill { fill: currentColor; stroke: none; }
.pw-nav-item:hover,
.pw-nav-item:focus-visible { background: rgba(61, 156, 255, .12); color: #fff; outline: none; }
.pw-nav-item.active { background: linear-gradient(90deg, #1b67d6, #2f86f5); color: #fff; box-shadow: 0 8px 20px rgba(27, 103, 214, .35); }
.pw-nav-exit { margin-top: auto; border: 1px solid rgba(255, 255, 255, .08); font-size: 15px; }

/* ---------- main area ---------- */
.pw-main { position: relative; min-height: 0; overflow: auto; padding: 18px 22px 22px; scrollbar-width: thin; }
.pw-view.hidden { display: none !important; }
.pw-profile { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(380px, 600px); align-items: start; gap: 20px; }
/* The character column keeps the window's height and stays in view while
   the right column scrolls: stretched to the right column it grew past
   the screen and the character came out cut. */
.pw-stage-col {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  height: calc(min(920px, 100vh - 32px) - 40px);
  min-height: 420px;
}
.pw-parts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
  padding: 8px;
  border: 1px solid var(--pw-line);
  border-radius: 12px;
  background: rgba(8, 14, 26, .85);
}
.pw-part {
  width: 78px;
  height: 78px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
  background: #0b1322;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pw-part canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.pw-part:hover,
.pw-part:focus-visible { border-color: rgba(143, 208, 255, .6); outline: none; }
.pw-part.active { border: 2px solid var(--pw-blue); box-shadow: 0 0 14px rgba(61, 156, 255, .55); }

.pw-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--pw-line);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 82%, rgba(38, 112, 230, .42), transparent 42%),
    radial-gradient(ellipse at 50% 30%, rgba(40, 80, 160, .25), transparent 60%),
    linear-gradient(180deg, #111c33, #070b15);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.pw-stage.dragging { cursor: grabbing; }
.pw-stage-mark { position: absolute; left: 50%; top: 6%; height: 62%; transform: translateX(-50%) skewX(-8deg); fill: rgba(70, 130, 230, .10); pointer-events: none; }
.pw-hero { position: absolute; inset: 0; perspective: 1100px; }
.pw-hero .voxel-scene { position: absolute; inset: 0; }
.pw-hero .voxel-shadow { display: none; }
.pw-hero .voxel-character {
  top: auto;
  bottom: 17%;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotateX(-6deg) rotateY(var(--pw-rot, -17deg)) scale(var(--pw-scale, 2.8));
  transition: none;
}
.pw-platform {
  position: absolute;
  left: 50%;
  bottom: calc(17% - 6%);
  width: min(62%, 420px);
  height: 12%;
  transform: translateX(-50%);
  border: 3px solid var(--pw-blue);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(20, 60, 130, .85), rgba(5, 12, 24, .92) 70%);
  box-shadow: 0 0 26px rgba(61, 156, 255, .9), inset 0 0 24px rgba(61, 156, 255, .6);
  pointer-events: none;
  z-index: 0;
}
.pw-hero { z-index: 1; }

/* the cubic character in the player's own colours */
.pw-hero .voxel-head {
  --voxel-front: var(--av-skin, #c98958); --voxel-side: var(--av-skin-d, #9b5f3d); --voxel-top: var(--av-hair, #5a321c);
  background:
    linear-gradient(var(--av-hair, #5a321c) 0 0) 0 0 / 100% 9px no-repeat,
    linear-gradient(var(--av-hair, #5a321c) 0 0) 0 8px / 8px 6px no-repeat,
    linear-gradient(var(--av-hair, #5a321c) 0 0) 17px 8px / 8px 3px no-repeat,
    linear-gradient(var(--av-hair, #5a321c) 0 0) 34px 8px / 8px 7px no-repeat,
    linear-gradient(var(--av-skin-d, #b97449) 0 0) 0 14px / 4px 19px no-repeat,
    linear-gradient(var(--av-skin-d, #a76943) 0 0) 38px 14px / 4px 19px no-repeat,
    var(--av-skin, #c98958);
}
.pw-hero .pw-hair-cap {
  --voxel-depth: 21px; --voxel-front: var(--av-hair, #5a321c); --voxel-side: var(--av-hair-d, #3d2213); --voxel-top: var(--av-hair, #5a321c);
  z-index: 6; left: 29px; top: 3px; width: 46px; height: 7px;
  background:
    linear-gradient(90deg, transparent 0 18%, var(--av-hair-d, #3d2213) 18% 22%, transparent 22% 58%, var(--av-hair-d, #3d2213) 58% 62%, transparent 62%) 0 100% / 100% 3px no-repeat,
    var(--av-hair, #5a321c);
}
.pw-hero .voxel-ear { border-color: var(--av-skin-dd, #8d5538); background: linear-gradient(90deg, var(--av-skin-d, #ad6c47), var(--av-skin-l, #d79768) 55%, var(--av-skin-d, #9e603e)); }
.pw-hero .voxel-nose { background: linear-gradient(90deg, var(--av-skin-d, #a86443), var(--av-skin-l, #d99568) 67%, var(--av-skin-dd, #8b4f35) 68%); }
.pw-hero .voxel-torso {
  --voxel-front: var(--av-shirt, #1375a9); --voxel-side: var(--av-shirt-d, #07466e); --voxel-top: var(--av-shirt-l, #38a1ce);
  background:
    linear-gradient(var(--av-shirt-l, #38a1ce) 0 0) 50% 0 / 46% 6px no-repeat,
    linear-gradient(rgba(255, 255, 255, .55) 0 0) 50% 6px / 1.5px 31px no-repeat,
    linear-gradient(var(--av-belt, #3a2616) 0 0) 0 100% / 100% 6px no-repeat,
    linear-gradient(90deg, var(--av-shirt-d, #0e5a89) 0 16%, var(--av-shirt, #1580b5) 16% 84%, var(--av-shirt-d, #0b527f) 84%);
}
.pw-emblem { position: absolute; right: 7px; top: 9px; z-index: 1; color: #fff; font: 900 9px/1 Impact, "Arial Black", sans-serif; text-shadow: 0 0 2px rgba(0, 0, 0, .6); pointer-events: none; }
.pw-hero .voxel-arm {
  --voxel-front: var(--av-skin, #c98958); --voxel-side: var(--av-skin-d, #955b3a); --voxel-top: var(--av-shirt-l, #1c8db8);
  background: linear-gradient(var(--av-shirt, #1680ad) 0 42%, var(--av-skin, #c98958) 42%);
}
.pw-hero .voxel-leg {
  --voxel-front: var(--av-pants, #253e72); --voxel-side: var(--av-pants-d, #18294e); --voxel-top: var(--av-pants, #315182);
  background: linear-gradient(var(--av-pants, #29487d) 0 74%, var(--av-boots, #1b273d) 74%);
}

.pw-member {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--pw-line);
  border-radius: 12px;
  background: var(--pw-card);
}
.pw-crown svg { display: block; width: 36px; height: 36px; fill: #f3b637; stroke: #b27612; stroke-width: 1; filter: drop-shadow(0 0 6px rgba(243, 182, 55, .45)); }
.pw-member strong { display: block; color: #fff; font-size: 17px; font-weight: 600; }
.pw-member span { color: var(--pw-soft); font-size: 14px; }

/* ---------- right column ---------- */
.pw-info-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pw-card { padding: 16px 18px; border: 1px solid var(--pw-line); border-radius: 12px; background: var(--pw-card); }
.pw-card h3,
.pw-pane-title { margin: 0 0 14px; color: #e8eef6; font: 700 15px/1.2 var(--ui-font); letter-spacing: .06em; text-transform: uppercase; }
.pw-pane-title { font-size: 20px; letter-spacing: .04em; text-transform: none; }
.pw-header { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding-right: 54px; }
.pw-face { display: block; width: 110px; height: 110px; padding: 3px; border: 3px solid var(--pw-blue); border-radius: 12px; background: #0b1424; box-shadow: 0 0 18px rgba(61, 156, 255, .45); box-sizing: border-box; }
.pw-face canvas { display: block; width: 100%; height: 100%; border-radius: 6px; image-rendering: pixelated; }
.pw-identity { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.pw-name { max-width: 100%; overflow: hidden; color: #fff; font: 700 30px/1.1 var(--ui-font); text-overflow: ellipsis; white-space: nowrap; }
.pw-id { display: flex; align-items: center; gap: 8px; color: var(--pw-soft); font-size: 16px; }
.pw-id b { font-weight: 500; letter-spacing: .04em; }
.pw-icon-btn { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--pw-soft); cursor: pointer; }
.pw-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pw-icon-btn:hover,
.pw-icon-btn:focus-visible { border-color: rgba(143, 208, 255, .5); color: #fff; outline: none; }
.pw-motto { max-width: 100%; padding: 2px 0; border: 0; background: none; color: #c9d3e0; font: italic 400 16px/1.3 var(--ui-font); text-align: left; cursor: text; }
.pw-motto input { width: min(320px, 100%); padding: 4px 8px; border: 1px solid rgba(143, 208, 255, .6); border-radius: 6px; background: rgba(6, 12, 22, .9); color: #fff; font: 400 15px var(--ui-font); }
.pw-level { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 136px; }
.pw-hex {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: 74px;
  height: 84px;
  background: linear-gradient(180deg, #7cc8ff, #1d6fe0);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  filter: drop-shadow(0 0 10px rgba(61, 156, 255, .6));
}
.pw-hex::before { content: ''; position: absolute; inset: 4px; background: linear-gradient(180deg, #16223a, #0a1222); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.pw-hex span,
.pw-hex strong { position: relative; z-index: 1; color: #fff; line-height: 1; }
.pw-hex span { font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.pw-hex strong { font-size: 28px; font-weight: 700; }
.pw-bar { display: block; width: 136px; height: 7px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.pw-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1778e6, #49b6ff); box-shadow: 0 0 8px rgba(73, 182, 255, .7); transition: width .5s ease; }
.pw-level small { color: #d7e3f2; font-size: 14px; }

.pw-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pw-chip { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 1px solid var(--pw-line); border-radius: 10px; background: var(--pw-card); }
.pw-chip svg { flex: 0 0 auto; width: 26px; height: 26px; fill: none; stroke: #58a9ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pw-chip div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pw-chip strong { color: #e8eef6; font-size: 15px; font-weight: 600; }
.pw-chip span { overflow: hidden; color: var(--pw-soft); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.pw-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: #2fd36b; box-shadow: 0 0 10px #2fd36b; }
.pw-dot.off { background: #6b7686; box-shadow: none; }

.pw-banner { position: relative; height: 112px; overflow: hidden; border: 1px solid var(--pw-line); border-radius: 12px; }
.pw-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 42%; }
.pw-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 12, 22, .92) 0 26%, rgba(8, 12, 22, .2) 62%, rgba(8, 12, 22, 0)); }
.pw-banner strong { position: absolute; left: 26px; top: 50%; z-index: 1; transform: translateY(-50%); color: #fff; font: 700 22px/1.25 var(--ui-font); text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }

.pw-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pw-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px 6px; text-align: center; }
.pw-stat + .pw-stat { border-left: 1px solid rgba(255, 255, 255, .08); }
.pw-stat svg { width: 34px; height: 34px; fill: none; stroke: var(--pw-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(61, 156, 255, .4)); }
.pw-stat span { color: var(--pw-soft); font-size: 13px; }
.pw-stat strong { color: #fff; font-size: 24px; font-weight: 600; }
.pw-note { display: block; margin-top: 10px; color: #7f8ea3; font-size: 12px; text-align: center; }

.pw-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.pw-card-head h3 { margin: 0; }
.pw-link { padding: 4px 0; border: 0; background: none; color: #58a9ff; font: 600 14px var(--ui-font); cursor: pointer; }
.pw-link:hover,
.pw-link:focus-visible { color: #9ad6ff; outline: none; }
.pw-recent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pw-achievement { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 6px; text-align: center; }
.pw-achievement + .pw-achievement { border-left: 1px solid rgba(255, 255, 255, .08); }
.pw-achievement svg { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.pw-achievement strong { color: #fff; font-size: 14px; font-weight: 600; }
.pw-achievement span { color: var(--pw-soft); font-size: 12px; line-height: 1.35; }
.pw-achievement.locked strong { color: #aab4c2; }
.pw-achievement.locked svg { opacity: .7; }

.pw-custom-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pw-custom-icon svg { display: block; width: 36px; height: 36px; fill: currentColor; filter: drop-shadow(0 0 6px rgba(0, 0, 0, .5)); }
.pw-swatches { display: flex; flex: 1 1 200px; flex-wrap: wrap; gap: 10px; }
.pw-swatch { width: 30px; height: 30px; padding: 0; border: 2px solid rgba(255, 255, 255, .18); border-radius: 50%; cursor: pointer; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .3); }
.pw-swatch:hover,
.pw-swatch:focus-visible { border-color: rgba(255, 255, 255, .6); outline: none; }
.pw-swatch.active { border-color: #fff; box-shadow: 0 0 0 3px var(--pw-blue), 0 0 12px rgba(61, 156, 255, .7); }
.pw-edit { display: flex; align-items: center; gap: 10px; margin-left: auto; padding: 12px 18px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(20, 30, 46, .9); color: #e8eef6; font: 600 15px var(--ui-font); cursor: pointer; }
.pw-edit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-edit:hover,
.pw-edit:focus-visible,
.pw-edit[aria-expanded="true"] { border-color: rgba(143, 208, 255, .6); color: #fff; outline: none; }
.pw-look-editor { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }

/* ---------- Resumen, Logros, Cuenta (ui.js panes), Tienda, Soporte ---------- */
.pw-panes { max-width: 980px; }
.pw-panes .profile-pane { min-height: 0; padding: 0; }
/* the old window capped the showcase at 317 px and used 8-9 px text */
.pw-panes .profile-achievement-grid { max-height: none; overflow: visible; gap: 10px; }
.pw-panes .profile-achievement { min-height: 64px; padding: 12px; border-color: var(--pw-line); border-radius: 10px; background: var(--pw-card); }
.pw-panes .profile-achievement.unlocked { border-color: rgba(143, 208, 255, .5); }
.pw-panes .profile-achievement strong { font-size: 14px; }
.pw-panes .profile-achievement span { font-size: 12px; }
.pw-panes .profile-section-title strong,
.pw-panes .profile-progress-head strong { font-size: 16px; }
.pw-panes .profile-section-title span,
.pw-panes .profile-progress-head span { font-size: 13px; }
.pw-soon { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 70px 20px; border: 1px dashed var(--pw-line); border-radius: 14px; color: var(--pw-soft); text-align: center; }
.pw-soon svg { width: 64px; height: 64px; fill: none; stroke: var(--pw-blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pw-soon strong { color: #fff; font-size: 24px; }
.pw-soon p { max-width: 460px; margin: 0; font-size: 15px; line-height: 1.5; }
.pw-support-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pw-support-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 3px 14px;
  padding: 16px;
  border: 1px solid var(--pw-line);
  border-radius: 12px;
  background: var(--pw-card);
  color: #e8eef6;
  font-family: var(--ui-font);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.pw-support-card:hover,
.pw-support-card:focus-visible { border-color: rgba(143, 208, 255, .6); outline: none; }
.pw-support-card > svg,
.pw-support-card > b { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; padding: 8px; box-sizing: border-box; border-radius: 10px; background: rgba(61, 156, 255, .14); color: #58a9ff; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; font-size: 18px; }
.pw-support-card strong { font-size: 15px; }
.pw-support-card span { color: var(--pw-soft); font-size: 13px; line-height: 1.4; }

/* ---------- narrower windows ---------- */
@media (max-width: 1180px) {
  .pw-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .pw-nav-item { padding: 12px 14px; font-size: 16px; }
  .pw-profile { grid-template-columns: minmax(0, 1fr); }
  .pw-stage-col { position: static; height: auto; min-height: 0; grid-template-rows: 480px auto; }
}
/* Shorter windows: the right column tightens so more of it fits. */
@media (max-height: 920px) and (min-width: 761px) {
  .pw-info-col { gap: 10px; }
  .pw-card { padding: 13px 16px; }
  .pw-card h3 { margin-bottom: 10px; }
  .pw-card-head { margin-bottom: 10px; }
  .pw-header { grid-template-columns: 92px minmax(0, 1fr) auto; }
  .pw-face { width: 92px; height: 92px; }
  .pw-name { font-size: 26px; }
  .pw-hex { width: 64px; height: 72px; }
  .pw-hex strong { font-size: 24px; }
  .pw-chip { padding: 9px 12px; }
  .pw-banner { height: 86px; }
  .pw-stat svg { width: 28px; height: 28px; }
  .pw-stat strong { font-size: 21px; }
  .pw-achievement svg { width: 46px; height: 46px; }
  .pw-achievement strong { font-size: 13px; }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  #menu .profile-panel.pw { inset: 0; width: auto; height: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; transform: none; }
  .pw-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .pw-nav { flex-direction: row; gap: 4px; margin-right: 50px; padding: 8px; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(92, 146, 214, .16); scrollbar-width: none; }
  .pw-nav::-webkit-scrollbar { display: none; }
  .pw-nav-item { flex: 0 0 auto; width: auto; gap: 8px; padding: 9px 12px; font-size: 14px; }
  .pw-nav-item svg { width: 20px; height: 20px; }
  .pw-nav-exit { margin-top: 0; }
  .pw-main { padding: 12px; }
  .pw-stage-col { position: static; height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 380px auto; }
  .pw-parts { flex-direction: row; justify-content: space-between; }
  .pw-part { width: 54px; height: 54px; padding: 6px; }
  .pw-member { grid-column: 1; }
  .pw-header { grid-template-columns: 72px minmax(0, 1fr); padding-right: 16px; gap: 12px; }
  .pw-face { width: 72px; height: 72px; }
  .pw-name { font-size: 22px; }
  .pw-level { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
  .pw-hex { width: 52px; height: 58px; }
  .pw-hex strong { font-size: 20px; }
  .pw-hex span { font-size: 9px; }
  .pw-bar { flex: 1 1 auto; width: auto; }
  .pw-chips { grid-template-columns: minmax(0, 1fr); }
  .pw-stat-grid,
  .pw-recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .pw-stat:nth-child(3),
  .pw-achievement:nth-child(3) { border-left: 0; }
  .pw-edit { margin-left: 0; }
}
@media (max-height: 560px) and (orientation: landscape) {
  #menu .profile-panel.pw { inset: 0; width: auto; height: 100%; height: 100dvh; max-height: none; border-radius: 0; transform: none; }
  .pw-layout { grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: none; }
  .pw-nav { flex-direction: column; padding: 8px 6px; overflow-y: auto; border-bottom: 0; border-right: 1px solid rgba(92, 146, 214, .16); }
  .pw-nav-item { justify-content: center; padding: 10px; }
  .pw-nav-item span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pw-profile { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .pw-stage-col { height: calc(100vh - 24px); height: calc(100dvh - 24px); min-height: 0; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .pw-parts { flex-direction: column; padding: 4px; gap: 6px; }
  .pw-part { width: 52px; height: 52px; padding: 5px; }
  .pw-member { grid-column: 2; }
}
