/* Update badges (header) and the Updates panel on the account page. */

/* a small ember pill on the tab label */
.fu-has { position: relative; }
.fu-badge {
  position: absolute;
  top: -9px;
  right: -15px;
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ember, #e3915a);
  color: #1b130c;
  box-shadow: 0 0 0 2px var(--bg, #1c1b19);
  font: 700 10.5px/1 var(--f-mono, ui-monospace, monospace);
  letter-spacing: 0;
  pointer-events: none;
  animation: fu-pop 320ms cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes fu-pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* "3 new" in a menu card or a phone menu row */
.mm-card.fu-has { position: relative; }
.fu-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ember, #e3915a) 20%, transparent);
  color: var(--ember, #e3915a);
  font: 600 11px/1.2 var(--f-mono, ui-monospace, monospace);
  letter-spacing: 0.02em;
}
nav a .fu-pill { position: static; margin-left: 8px; vertical-align: middle; }

/* shop menu: a line under the columns when something is new to you */
.fu-newtoyou {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--ember, #e3915a) 40%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--ember, #e3915a) 10%, transparent);
  color: var(--text, #ece6dc) !important;
  font: 500 14px/1.2 var(--f-ui, inherit);
  text-decoration: none !important;
}
.fu-newtoyou b { color: var(--ember, #e3915a); font: 700 14px/1 var(--f-mono, ui-monospace, monospace); }
.fu-newtoyou i { margin-left: auto; color: var(--ember, #e3915a); font-style: normal; }
.fu-newtoyou:hover { border-color: var(--ember, #e3915a); }

@media (max-width: 900px) {
  .fu-badge { position: static; display: inline-grid; margin-left: 8px; vertical-align: middle; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .fu-badge { animation: none; } }

/* ---------- account page: Updates panel ---------- */
.upd-count { padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--ember, #e3915a) 20%, transparent); color: var(--ember, #e3915a); font: 600 11.5px/1.2 var(--f-mono, ui-monospace, monospace); }
.upd-list { display: grid; gap: 4px; margin: 14px 0 0; padding: 0; list-style: none; }
.upd-item { position: relative; border-radius: 10px; }
.upd-head { position: relative; display: grid; gap: 6px; width: 100%; padding: 13px 38px 13px 30px; border: 0; border-radius: 10px; background: transparent; color: inherit !important; font: inherit; text-align: left; text-decoration: none !important; cursor: default; transition: background-color 120ms ease-out; }
a.upd-head, button.upd-head { cursor: pointer; }
a.upd-head:hover, button.upd-head:hover { background: rgba(255, 255, 255, 0.04); }
button.upd-head:focus-visible, a.upd-head:focus-visible { outline: 2px solid var(--ember, #e3915a); outline-offset: 1px; }
.upd-item.is-unread::before { content: ""; position: absolute; left: 12px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--ember, #e3915a); z-index: 1; }
.upd-meta { display: flex; align-items: center; gap: 10px; color: var(--dim, #a9a298); font: 500 11px/1 var(--f-mono, ui-monospace, monospace); letter-spacing: 0.06em; text-transform: uppercase; }
.upd-kind { color: var(--ember, #e3915a); }
.upd-kind.is-price { color: #8fd0a8; }
.upd-kind.is-offer { color: #e9c46a; }
.upd-title { margin: 0; color: var(--text, #ece6dc); font: 600 15px/1.3 var(--f-head, inherit); letter-spacing: -0.005em; }
.upd-body { margin: 0; color: var(--dim, #a9a298); font: 400 13.5px/1.55 var(--f-ui, inherit); white-space: pre-line; }
.upd-empty { margin: 14px 0 0; padding: 18px 4px 6px; color: var(--dim, #a9a298); font: 400 14px/1.6 var(--f-ui, inherit); }
.upd-more { margin-top: 8px; }

/* items: thumbnails when closed, a list with link buttons when open */
.upd-thumbs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.upd-thumb { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; background: #000; border: 1px solid var(--fx-line, rgba(236, 230, 220, 0.14)); }
.upd-thumb-more { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; border: 1px dashed var(--fx-line, rgba(236, 230, 220, 0.2)); color: var(--dim, #a9a298); font: 500 10.5px/1 var(--f-mono, ui-monospace, monospace); }
.upd-chev { position: absolute; right: 12px; top: 16px; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23a9a298' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 160ms ease-out; }
.upd-item.is-open .upd-chev { transform: rotate(180deg); }
.upd-item.is-open .upd-thumbs { display: none; }
/* open: every item as a small square picture, each a link */
.upd-detail { display: none; flex-wrap: wrap; gap: 6px; padding: 2px 14px 14px 30px; }
.upd-item.is-open .upd-detail { display: flex; }
.upd-sq { display: block; width: 46px; height: 46px; overflow: hidden; border: 1px solid var(--fx-line, rgba(236, 230, 220, 0.14)); border-radius: 8px; background: #000; transition: border-color 120ms ease-out, transform 120ms ease-out; }
.upd-sq:hover { border-color: var(--ember, #e3915a); transform: translateY(-1px); }
.upd-sq:focus-visible { outline: 2px solid var(--ember, #e3915a); outline-offset: 2px; }
.upd-sq-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* see all */
.upd-dialog { width: min(560px, calc(100vw - 28px)); max-height: min(78vh, 720px); padding: 0; border: 1px solid var(--fx-line-strong, rgba(236, 230, 220, 0.26)); border-radius: 18px; background: var(--bg, #1c1b19); color: var(--text, #ece6dc); }
.upd-dialog::backdrop { background: rgba(8, 7, 6, 0.7); }
.upd-dialog[open] { display: flex; flex-direction: column; }
.upd-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 12px; border-bottom: 1px solid var(--fx-line, rgba(236, 230, 220, 0.12)); }
.upd-dialog-head h2 { margin: 0; font: 600 18px/1.2 var(--f-head, inherit); }
.upd-dialog .upd-list { margin: 0; padding: 10px 12px 16px; overflow-y: auto; }
