/* MineVault portal – the player area only (7.8.1: Phase E, step E2; loaded by player*.html and join.html after pages.css). */

/* ================================================================== 7.8.1: player area (Phase E, step E2)
   The head is one compact row (no card), "Needs your attention" comes right after it, phones get a bar at the
   bottom instead of the row of tabs that scrolled sideways. */
.pl-hero { padding: 4px 0 2px; }
.pl-hero .profile-head { gap: 14px 16px; }
.pl-hero .profile-head img { border-radius: var(--radius-s); image-rendering: pixelated; box-shadow: var(--outline); }
.pl-hero .pl-hello { gap: 10px; }
/* The Eight-Pixel Rule (DESIGN.md): the block font at 32 px, 24 px on phones */
.pl-hero .profile-head h1 { font-size: 32px; line-height: 1.15; }
.pl-hero-actions { gap: 6px; }
.pl-attention .today-item.bad { background: rgb(var(--shade-rgb) / .28); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 45%, transparent); }
.pl-attention .today-item.bad .today-ic { color: var(--bad); background: color-mix(in srgb, var(--bad) 16%, transparent); }
.pl-attention .today-item b .mono { font-weight: 700; color: var(--ink-2); }
.pl-att-go { flex: none; gap: 6px; }
@media (max-width: 600px) {
  .pl-hero .profile-head h1 { font-size: 24px; }
  .pl-hero .profile-head > .grow { flex: 1 1 calc(100% - 80px); }
  .pl-hero-actions { width: 100%; }
  .pl-attention .today-item { flex-wrap: wrap; }
  .pl-attention .today-item > .grow { flex: 1 1 calc(100% - 52px); min-width: 0; }
  .pl-attention .today-item > .btn { margin-left: 52px; }
  .pl-att-go { flex: 1 1 100%; margin-left: 52px; }
  .pl-att-go .btn { flex: 1 1 auto; justify-content: center; }
}
/* phones: the profile card above already shows the face */
@media (max-width: 899px) { .pl-hero .profile-head > img { display: none; } }

.pl-phonenav { display: none; }
@media (max-width: 760px) {
  #app:has(> .pl-phonenav) > .pl-side .pl-nav { display: none; }
  body:has(.pl-phonenav) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .pl-phonenav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; box-sizing: border-box; max-width: 100vw; overflow: hidden;
    display: flex; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: linear-gradient(var(--header-bg, var(--bg-0)), var(--header-bg, var(--bg-0))), var(--bg-0); border-top: 1px solid var(--line-2); box-shadow: 0 -8px 24px -16px rgb(0 0 0 / .6);
    /* 7.13.3: the bar's colour is 88 % opaque – laid over the page colour it covers what scrolls under it (Vault has no blur) */
  }
  .pl-phonenav a, .pl-phonenav button {
    position: relative; flex: 1 1 0; min-width: 0; min-height: 52px; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font: inherit; font-size: .75rem; font-weight: 700; color: var(--ink-3); text-decoration: none;
    background: none; border: 0; border-radius: var(--radius-s); cursor: pointer;
    transition: background var(--mv-dur-fast) var(--mv-ease-out), color var(--mv-dur-fast) var(--mv-ease-out);
  }
  .pl-phonenav :is(a, button):hover { color: var(--ink); }
  .pl-phonenav :is(a, button):focus-visible { outline-offset: -3px; }
  .pl-phonenav .icon { width: 22px; height: 22px; }
  .pl-phonenav a[aria-current="page"] { color: var(--ink); background: rgb(var(--accent2-rgb) / .16); }
  .pl-phonenav .count { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: .66rem; font-weight: 800; display: grid; place-items: center; background: var(--c-alert); color: #fff; }   /* 7.13.2: the red of every other count, 5.6:1 (redstone was 4.2:1) */
  .dialog.sheet { position: fixed !important; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; max-height: 82vh; overflow-y: auto; border-radius: var(--radius) var(--radius) 0 0; margin: 0; }
  .sheet-nav { display: grid; gap: 14px; }
  .sheet-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .sheet-group h4 { grid-column: 1 / -1; margin: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
  .sheet-group a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border-radius: var(--radius-s); background: var(--bg-3); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
  .sheet-group a[aria-current="page"] { background: var(--grass); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .pl-phonenav :is(a, button) { transition: none; } }

/* 7.9.0: "This week" – the weekly challenges */
.pl-week .grow { display: grid; gap: 6px; min-width: 0; }
.pl-week-top { gap: 8px; }
.pl-week .progress { height: 8px; margin: 0; }
.pl-week.done b { color: var(--ink-2); }

/* 8.0.0: the card for the year's MineVault Wrapped (December and January) */
.wr-teaser { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; background: radial-gradient(80% 140% at 0% 0%, rgb(90 216 230 / .16), transparent 70%), var(--glass-2); }
.wr-teaser:hover { text-decoration: none; box-shadow: inset 0 0 0 1px rgb(90 216 230 / .5); }
.wr-teaser-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; color: #150D10; background: #F2B440; }
