/* monkeythenick.com - account-04.css (owner: ACCOUNT UI, release K: the SOCIAL builder, 2026-10-26). Title badge + account menu +
   FRIENDS (play/js/account-menu-04.js). account-04 = account-03.css + the release-K block at the end: the requests count on the
   title badge, the FRIENDS screen (rows with picture, name, status and 44 px buttons that wrap under the name on a 360 px phone;
   the online dot; the ADD FRIEND field) and the invite card (a small card at the top of the title / hub). K fix (2026-11-05): a
   friend row's buttons (INVITE / JOIN / REMOVE / BLOCK) go two by two on a phone. Everything above is
   account-03.css, line for line.
   (account-03's header:) monkeythenick.com - account-03.css (owner: ACCOUNT, release H, 2026-10-25). Title badge + account menu (play/js/account-menu-03.js).
   account-03 replaces account-02.css: + the PROFILE PICTURE section (picture, buttons, the crop view with its zoom row) and the
   picture in the title badge. Everything above the release-H block is account-02.css, line for line.
   (account-02, finisher, replaced account-01.css: the password form folds away behind CHANGE PASSWORD; logout confirmation.)
   Uses the core tokens (core-03.css) and the meta screen classes (meta-04.css). Mobile first, no horizontal scroll. */

/* == title badge: top right of the title screen; the "← case file" link sits top left == */
.acct-badge {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 2;
  display: flex; align-items: center; justify-content: flex-end; min-height: 44px;
  max-width: calc(100% - 150px);
}
.acct-badge.is-unknown { visibility: hidden; }
.acct-badge-btn, .acct-badge-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; max-width: 100%; padding: 6px 14px;
  font: 400 16px/1 var(--f-display); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  color: var(--cream); background: rgba(33, 25, 19, 0.92); border: 2px solid rgba(247, 236, 216, 0.25); border-radius: 22px;
  box-shadow: 0 3px 0 var(--ink); cursor: pointer; text-decoration: none;
}
.acct-badge-link { color: var(--ink); background: var(--batter); border-color: var(--ink); box-shadow: 0 3px 0 var(--crust); }
.acct-badge-btn:hover, .acct-badge-link:hover { filter: brightness(1.08); }
.acct-badge-btn:focus-visible, .acct-badge-link:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.acct-badge-pre { color: var(--muted); }
.acct-badge-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--grease); }
.acct-badge-caret { color: var(--batter); }
.acct-badge-off {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 22px;
  font: 13px/1.2 var(--f-type); color: var(--muted); background: rgba(11, 9, 7, 0.6);
}
@media (max-width: 420px) {
  .acct-badge { right: 10px; max-width: calc(100% - 132px); }
  .acct-badge-btn, .acct-badge-link { font-size: 14px; padding: 6px 10px; }
  .acct-badge-pre { display: none; }
  .acct-panel .acct-pic-row { gap: 12px; }    /* release H (account-03; the higher specificity beats the base rules below) */
  .acct-panel .acct-pic-help { font-size: 14px; }
}

/* == account menu (scene acct-menu) == */
.acct-panel { width: min(100%, 480px); }
.acct-who { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; font-family: var(--f-display); letter-spacing: 0.05em; }
.acct-name { font-weight: 400; color: var(--grease); overflow-wrap: anywhere; }
.acct-tag {
  display: inline-block; padding: 1px 8px; border: 2px solid var(--ketchup); border-radius: 5px; transform: rotate(-4deg);
  font: 400 13px/1.3 var(--f-display); letter-spacing: 0.08em; color: var(--ketchup);
}
.acct-login { margin-top: 4px; text-align: center; overflow-wrap: anywhere; }
.acct-form { display: flex; flex-direction: column; gap: 10px; }
.acct-field { display: flex; flex-direction: column; gap: 4px; }
.acct-label { font: 400 13px/1.1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.acct-input {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  font: 17px/1.2 var(--f-type); color: var(--cream); background: var(--ink); border: 2px solid rgba(247, 236, 216, 0.25);
}
.acct-input:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--batter); }
.acct-submit { margin-top: 2px; }
.acct-submit[disabled], .acct-logout[disabled] { opacity: 0.6; cursor: progress; }
.acct-msg { margin: 0; min-height: 1.3em; font: 14px/1.35 var(--f-type); }
.acct-msg:empty { min-height: 0; }
.acct-msg.bad { color: #ff7a6e; }
.acct-msg.ok { color: var(--grease); }
.acct-linkbtn { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
.meta-col > .acct-linkbtn { width: 100%; }
.acct-center { text-align: center; }
.acct-sec .meta-btnrow > .mtn-btn { flex: 1 1 140px; }

/* finisher (account-02): folded password form + logout confirmation */
.acct-panel [hidden] { display: none !important; }
.acct-confirm { margin: 0; padding: 8px 10px; border-left: 4px solid var(--ketchup); border-radius: 8px; background: rgba(11, 9, 7, 0.45);
  font: 14px/1.4 var(--f-type); color: var(--cream); }

/* == release H (account-03): profile pictures. Big and readable: 88 px picture, 18 px heading, 15 px help, 44 px controls == */
.acct-badge-av { margin: -4px 2px -4px -8px; }
.acct-pic { gap: 10px; }
.acct-pic-row { display: flex; align-items: center; gap: 16px; }
.acct-pic-row .acct-pic-cur { box-shadow: 0 0 0 3px var(--batter), 0 4px 0 3px var(--ink) !important; }
.acct-pic-tx { min-width: 0; flex: 1 1 auto; }
.acct-pic-h { margin: 0 0 4px; font: 400 19px/1.15 var(--f-display); letter-spacing: 0.07em; color: var(--batter); }
.acct-pic-help { margin: 0; font: 15px/1.4 var(--f-type); color: var(--cream); }
.acct-pic-note { margin: 0; font-size: 14px; }
.acct-pic-btns { margin-top: 2px; }
.acct-pic-btns.meta-btnrow > .mtn-btn { flex: 1 1 140px; }
.acct-pic-msg { font-size: 15px; }
.acct-crop { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.acct-crop-canvas {
  width: min(280px, 72vw); height: min(280px, 72vw); border-radius: 14px; background: var(--ink);
  box-shadow: 0 0 0 3px var(--batter), 0 6px 0 3px var(--ink); touch-action: none; cursor: grab;
}
.acct-crop-canvas.drag { cursor: grabbing; }
.acct-crop-canvas:focus-visible { outline: 3px solid var(--teal); outline-offset: 6px; }
.acct-zoom { display: flex; align-items: center; gap: 10px; width: min(340px, 100%); }
.acct-zoom .acct-zoom-btn {                 /* the display font draws a small "+" and has no minus: plain bold symbols */
  flex: 0 0 auto; min-width: 56px; padding: 4px 12px; font: 700 30px/1 Arial, Helvetica, sans-serif; letter-spacing: 0;
}
.acct-zoom-range { flex: 1 1 auto; min-width: 0; min-height: 44px; accent-color: var(--batter); }
.acct-pic-save[disabled] { opacity: 0.6; cursor: progress; }

/* == release K (account-04): FRIENDS. 44 px controls, rows that wrap on a 360 px phone, text labels on every button == */
.acct-badge-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 2px;
  border-radius: 11px; background: var(--ketchup); color: var(--cream); font: 400 13px/1 var(--f-display); letter-spacing: 0.02em;
  box-shadow: 0 0 0 2px var(--ink);
}
.acct-friends-btn { position: relative; }
.acct-friends { width: min(100%, 620px); }
.acct-fmsg { text-align: center; }
.acct-faddform { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.acct-faddform .acct-label { flex-basis: 100%; }
.acct-faddform .acct-fname { flex: 1 1 200px; width: auto; }
.acct-faddform .acct-fsend { flex: 0 0 auto; min-height: 44px; }
.acct-frow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px; border-radius: 12px;
  background: rgba(11, 9, 7, 0.45); border-left: 4px solid rgba(247, 236, 216, 0.18);
}
.acct-frow.friend.st-online, .acct-frow.friend.st-story, .acct-frow.friend.st-rush, .acct-frow.friend.st-foodfight { border-left-color: var(--teal); }
.acct-frow.in { border-left-color: var(--batter); }
.acct-frow.blocked { opacity: 0.85; }
.acct-frow-av { flex: 0 0 auto; }
.acct-frow-tx { flex: 1 1 140px; min-width: 0; }
.acct-frow-name { font: 400 18px/1.15 var(--f-display); letter-spacing: 0.04em; color: var(--grease); overflow-wrap: anywhere; }
.acct-frow-st { display: flex; align-items: center; gap: 6px; font: 14px/1.3 var(--f-type); color: var(--muted); }
.acct-frow.friend.st-online .acct-frow-st, .acct-frow.friend.st-story .acct-frow-st, .acct-frow.friend.st-rush .acct-frow-st,
.acct-frow.friend.st-foodfight .acct-frow-st { color: var(--cream); }
.acct-dot { width: 10px; height: 10px; border-radius: 50%; background: #6BE38A; box-shadow: 0 0 0 2px var(--ink); flex: 0 0 auto; }
.acct-frow-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex: 0 1 auto; margin-left: auto; }
.acct-frow-acts .acct-fbtn { min-height: 44px; padding: 6px 12px; font-size: 15px; }
.acct-frow-ask { flex-basis: 100%; font: 14px/1.3 var(--f-type); color: var(--cream); text-align: right; }
.acct-flist, .acct-freq, .acct-fblocked, .acct-fadd { display: flex; flex-direction: column; gap: 8px; }
.acct-fnote { font-size: 13px; }
@media (max-width: 480px) {
  .acct-frow-acts { flex-basis: 100%; justify-content: stretch; }
  .acct-frow-acts .acct-fbtn { flex: 1 1 90px; }
  .acct-frow.friend .acct-frow-acts .acct-fbtn { flex: 1 1 calc(50% - 3px); }   /* K fix: INVITE / JOIN / REMOVE / BLOCK two by two */
  .acct-frow-ask { text-align: left; }
}
/* the invite card: a small card at the top of the title / the hub (its scene keeps the screen below visible) */
.acct-iscr { background: rgba(11, 9, 7, 0.35); justify-content: flex-start; }
.acct-icard {
  width: min(calc(100% - 24px), 460px); margin: max(64px, env(safe-area-inset-top)) auto auto; padding: 14px; display: flex; flex-direction: column; gap: 10px;
  background: rgba(22, 17, 13, 0.97); color: var(--cream); border: 3px solid var(--batter); border-radius: 16px; box-shadow: 0 8px 0 var(--ink);
}
.acct-icard-top { display: flex; align-items: center; gap: 12px; }
.acct-icard-tx { margin: 0; font: 17px/1.35 var(--f-type); }
.acct-icard-name { font: 400 19px/1.1 var(--f-display); letter-spacing: 0.04em; color: var(--grease); overflow-wrap: anywhere; }
.acct-icard-left { margin: 0; font: 13px/1.2 var(--f-type); color: var(--muted); text-align: center; }
.acct-icard-btns > .mtn-btn { flex: 1 1 120px; min-height: 48px; font-size: 20px; }
/* the friends stickers in front of the labels (account-menu-04 ficon) and the online sticker in place of the CSS dot */
.acct-ficon { width: 22px; height: 22px; margin: -4px 6px -4px -4px; vertical-align: middle; object-fit: contain; pointer-events: none; }
.acct-fsend .acct-ficon { margin-left: -6px; }
.acct-dot.pic { width: 16px; height: 16px; background: none; box-shadow: none; }
.acct-dot-img { width: 16px; height: 16px; display: block; object-fit: contain; }
