/* =====================================================================================================
   In-game notifications (ui/notifications.js): the menu bell, the gift reveal (painted in the set's colours
   --x1 primary, --x2 light, --x3 deep, --x4 base), the calm "removed" sheet, the notification centre and the
   garage spotlight after "Wear it now". Landscape phones first (844×390, 740×360); logical properties so Arabic
   mirrors; motion is transform / opacity only, trimmed on low quality and off for prefers-reduced-motion.
   ===================================================================================================== */

/* ---- Bell (menu top bar, next to the status chip) ----------------------------------------------- */
.ntf-bell {
  position: relative; flex: none; display: grid; place-items: center;
  width: max(34px, 2.3rem); height: max(34px, 2.3rem); padding: 0; margin: 0; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(10, 10, 16, .55); color: #e6e6ec; cursor: pointer;
  box-shadow: var(--hi); transition: transform .14s var(--ease), border-color .2s, background-color .2s, color .2s;
}
.ntf-bell:active { transform: scale(.9); }
.ntf-bell:focus-visible { outline: 2px solid var(--brand-hot); outline-offset: 2px; }
.ntf-bell-ico { display: grid; width: 1.15rem; height: 1.15rem; transform-origin: 50% 10%; }
.ntf-bell-ico svg, .ntf-svg { display: block; width: 100%; height: 100%; }
.ntf-bell.has {
  color: #fff; border-color: rgba(255, 138, 31, .75);
  background: radial-gradient(circle at 50% 30%, rgba(255, 106, 0, .42), rgba(22, 12, 6, .78) 72%);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .14), 0 4px 16px rgba(255, 106, 0, .34), var(--hi);
}
.ntf-bell.ring .ntf-bell-ico { animation: ntf-ring 1.05s var(--ease) 2; }
.ntf-badge {
  position: absolute; top: -.32rem; inset-inline-end: -.36rem; min-width: 1.18rem; height: 1.18rem; padding: 0 .26rem;
  display: grid; place-items: center; border-radius: 999px; border: 2px solid #0b0b0f;
  font: 800 .64rem/1 var(--font); color: #fff; background: linear-gradient(180deg, #ff5a74, #e0203f);
  box-shadow: 0 2px 8px rgba(255, 61, 90, .55); animation: pop-in .3s var(--ease-back) both;
}
@keyframes ntf-ring {
  0%, 100% { transform: rotate(0); } 12% { transform: rotate(18deg); } 26% { transform: rotate(-15deg); }
  40% { transform: rotate(11deg); } 54% { transform: rotate(-7deg); } 68% { transform: rotate(3deg); }
}

/* ---- Reveal (items granted) -------------------------------------------------------------------- */
.modal-layer.ntf-grant-layer {
  --x1: #ff8a1f; --x2: #ffd9b8; --x3: #c24a00; --x4: #0b0b0f;
  overflow: hidden;
  padding: calc(var(--safe-t) + .75rem) calc(var(--safe-r) + clamp(.9rem, 3vw, 1.8rem)) calc(var(--safe-b) + .75rem) calc(var(--safe-l) + clamp(.9rem, 3vw, 1.8rem));
  background:
    radial-gradient(50% 78% at 25% 48%, color-mix(in srgb, var(--x3) 40%, transparent), transparent 72%),
    radial-gradient(42% 62% at 76% 52%, color-mix(in srgb, var(--x1) 11%, transparent), transparent 76%),
    radial-gradient(120% 120% at 50% 50%, rgba(7, 7, 11, .95), rgba(2, 2, 4, .985));
  animation: fade-in .35s var(--ease) both;
}
[dir="rtl"] .modal-layer.ntf-grant-layer {
  background:
    radial-gradient(50% 78% at 75% 48%, color-mix(in srgb, var(--x3) 40%, transparent), transparent 72%),
    radial-gradient(42% 62% at 24% 52%, color-mix(in srgb, var(--x1) 11%, transparent), transparent 76%),
    radial-gradient(120% 120% at 50% 50%, rgba(7, 7, 11, .95), rgba(2, 2, 4, .985));
}
.modal.ntf-reveal {
  width: min(56rem, 100%); height: min(26rem, 100%); max-height: 100%; padding: 0; gap: 0; overflow: visible;
  background: none; border: 0; border-radius: 0; box-shadow: none; animation: none;
}
.modal.ntf-reveal::before { display: none; }
.modal.ntf-reveal > .modal-body { height: 100%; min-height: 0; }
.ntf-rv {
  position: relative; height: 100%; min-height: 0; display: grid; align-items: center;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: clamp(.9rem, 3vw, 1.8rem);
}

/* confetti over the whole layer (one fall, then gone) */
.ntf-confetti { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ntf-confetti i {
  position: absolute; top: -6%; left: var(--x); width: .42rem; height: .78rem; border-radius: 2px; opacity: 0;
  animation: ntf-fall var(--du) cubic-bezier(.25, .6, .45, 1) var(--dl) forwards;
}
.ntf-confetti i:nth-child(3n) { width: .5rem; height: .5rem; border-radius: 50%; }
.ntf-confetti i:nth-child(4n + 1) { width: .3rem; height: .95rem; }
@keyframes ntf-fall {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(var(--r)); }
  8% { opacity: 1; }
  85% { opacity: .95; }
  100% { opacity: 0; transform: translate3d(var(--sx), 112vh, 0) rotate(calc(var(--r) + 540deg)); }
}

/* hero column: burst, emblem, words, buttons */
.ntf-hero { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; }
.ntf-emblem-wrap { position: relative; width: 6rem; height: 6rem; flex: none; display: grid; place-items: center; margin-block-end: .1rem; }
.ntf-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.ntf-rays {
  position: absolute; left: -11.5rem; top: -11.5rem; width: 23rem; height: 23rem; border-radius: 50%; opacity: 0;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--x1) 58%, transparent) 0deg 4.5deg, transparent 4.5deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 14%, rgba(0, 0, 0, .55) 40%, transparent 74%);
  mask: radial-gradient(closest-side, #000 14%, rgba(0, 0, 0, .55) 40%, transparent 74%);
  animation: ntf-rays-in 1s var(--ease-out) .1s forwards, ntf-spin 46s linear infinite;
}
.ntf-glow {
  position: absolute; left: -5.5rem; top: -5.5rem; width: 11rem; height: 11rem; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--x1) 62%, transparent), color-mix(in srgb, var(--x1) 16%, transparent) 55%, transparent);
  animation: ntf-glow-in .9s var(--ease-out) both, ntf-breathe 3.2s ease-in-out 1s infinite;
}
.ntf-ring {
  position: absolute; left: -3.4rem; top: -3.4rem; width: 6.8rem; height: 6.8rem; border-radius: 50%; opacity: 0;
  border: 2px solid var(--x2); box-shadow: 0 0 1.2rem var(--x1), inset 0 0 1rem color-mix(in srgb, var(--x1) 50%, transparent);
  animation: ntf-ring-out 1.2s var(--ease-out) .22s forwards;
}
.ntf-ring.r2 { border-color: var(--x1); animation-delay: .5s; }
.ntf-sparks i {
  position: absolute; left: -.2rem; top: -.2rem; width: .4rem; height: .4rem; border-radius: 50%; opacity: 0;
  background: #fff; box-shadow: 0 0 .35rem var(--x2), 0 0 .9rem var(--x1);
  animation: ntf-spark 1.25s var(--ease-out) calc(.26s + var(--t)) forwards, ntf-twinkle 2.6s ease-in-out calc(1.7s + var(--t) * 5) infinite;
}
.ntf-sparks i:nth-child(odd) { width: .28rem; height: .28rem; left: -.14rem; top: -.14rem; background: var(--x2); }
.ntf-emblem { position: relative; z-index: 1; width: 5rem; height: 5rem; display: grid; place-items: center; animation: ntf-pop .85s var(--ease-back) .12s both; }
.ntf-emblem-art {
  display: grid; width: 100%; height: 100%;
  filter: drop-shadow(0 0 .8rem color-mix(in srgb, var(--x1) 85%, transparent)) drop-shadow(0 .35rem .55rem rgba(0, 0, 0, .65));
  animation: ntf-float 3.8s ease-in-out 1.1s infinite;
}
.ntf-emblem-art svg { width: 100%; height: 100%; }
.ntf-giftbadge {
  position: absolute; bottom: -.62rem; inset-inline-end: -.62rem; width: 1.85rem; height: 1.85rem; border-radius: 50%;
  display: grid; place-items: center; color: var(--x4); border: 2px solid #0b0b0f;
  background: linear-gradient(180deg, #fff, var(--x2) 30%, var(--x1)); box-shadow: 0 .25rem .7rem rgba(0, 0, 0, .55), 0 0 .8rem color-mix(in srgb, var(--x1) 60%, transparent);
  animation: ntf-pop .55s var(--ease-back) .75s both;
}
.ntf-giftbadge svg { width: 1.02rem; height: 1.02rem; }
.ntf-kicker {
  display: inline-flex; align-items: center; gap: .35rem; padding: .16rem .7rem .18rem; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; line-height: 1.3;
  color: var(--x2); background: color-mix(in srgb, var(--x1) 15%, rgba(0, 0, 0, .45)); border: 1px solid color-mix(in srgb, var(--x1) 48%, transparent);
  animation: rise-in .5s var(--ease-out) .38s both;
}
html[lang="ar"] .ntf-kicker { letter-spacing: 0; font-size: .78rem; }
.ntf-kicker-ico { display: grid; width: .95rem; height: .95rem; color: var(--x1); }
.ntf-title {
  max-width: 23rem; font-size: clamp(1.3rem, 5.4vh, 1.85rem); font-weight: 800; line-height: 1.14; text-wrap: balance;
  background: linear-gradient(100deg, var(--x2) 0%, #fff 18%, var(--x1) 40%, var(--x2) 56%, #fff 66%, var(--x1) 86%, var(--x2) 100%) 0 0 / 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 12px color-mix(in srgb, var(--x1) 40%, transparent));
  animation: rise-in .55s var(--ease-out) .46s both, ntf-sheen 5s linear 1.2s infinite;
}
.ntf-sub { max-width: 23rem; font-size: .8rem; line-height: 1.4; color: #cdced8; animation: rise-in .5s var(--ease-out) .54s both; }
.ntf-note {
  position: relative; width: 100%; max-width: 23rem; margin-block-start: .2rem; padding: .42rem .75rem .48rem; border-radius: 12px;
  text-align: start; background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .1); border-inline-start: 3px solid var(--x1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3); animation: rise-in .5s var(--ease-out) .62s both;
}
.ntf-note::after {
  content: '\201D'; position: absolute; top: -.35rem; inset-inline-end: .5rem; font: 800 2.2rem/1 Georgia, serif;
  color: color-mix(in srgb, var(--x1) 55%, transparent); pointer-events: none;
}
.ntf-note-k { display: block; font-size: .62rem; font-weight: 800; color: var(--x2); letter-spacing: .1em; text-transform: uppercase; }
html[lang="ar"] .ntf-note-k { letter-spacing: 0; font-size: .7rem; }
.ntf-note-t {
  font-size: .82rem; line-height: 1.42; color: #f2f2f6; unicode-bidi: plaintext; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ntf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-block-start: .4rem; animation: rise-in .5s var(--ease-out) .7s both; }
.ntf-actions .btn { min-width: 7.2rem; }
.btn.primary.ntf-wear {
  color: var(--x4); text-shadow: none; font-weight: 800; border-color: color-mix(in srgb, var(--x2) 85%, transparent);
  background: linear-gradient(180deg, #fff -30%, var(--x2) 8%, var(--x1) 55%, var(--x3) 135%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 color-mix(in srgb, var(--x3) 70%, transparent), 0 6px 22px color-mix(in srgb, var(--x1) 48%, transparent);
}
.btn.primary.ntf-wear::after {
  content: ''; position: absolute; top: -10%; bottom: -10%; left: -45%; width: 35%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: btn-shine 3.4s var(--ease) 1.4s infinite;
}
.btn.ntf-later { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .16); box-shadow: none; }

/* pieces column */
.ntf-pieces {
  position: relative; z-index: 1; min-width: 0; min-height: 0; max-height: 100%; display: flex; flex-direction: column; gap: .45rem;
  padding: .65rem; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02));
  border: 1px solid color-mix(in srgb, var(--x1) 24%, rgba(255, 255, 255, .08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 20px 50px rgba(0, 0, 0, .5), 0 0 40px color-mix(in srgb, var(--x1) 10%, transparent);
  animation: ntf-panel-in .6s var(--ease-out) .28s both;
}
.ntf-ihead { flex: none; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-inline: .15rem; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9fa0ab; }
html[lang="ar"] .ntf-ihead { letter-spacing: 0; font-size: .76rem; }
.ntf-ihead-n { min-width: 1.45rem; height: 1.3rem; padding: 0 .4rem; display: grid; place-items: center; border-radius: 999px; font-size: .72rem; letter-spacing: 0; color: var(--x4); background: linear-gradient(180deg, var(--x2), var(--x1)); }
.ntf-grid {
  min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(6.1rem, 1fr)); gap: .42rem; align-content: start;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: .1rem; margin: -.1rem;
}
.ntf-grid::-webkit-scrollbar { display: none; }
.ntf-card {
  position: relative; min-width: 0; display: flex; flex-direction: column; gap: .14rem; padding: .28rem .28rem .36rem; border-radius: 12px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--x3) 52%, #121217) 0%, #0c0c11 78%);
  border: 1px solid color-mix(in srgb, var(--x1) 42%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 6px 16px rgba(0, 0, 0, .38);
  transform-origin: 50% 100%;
  animation: ntf-card-in .62s var(--ease-back) calc(.55s + var(--i) * .07s) both;
}
.ntf-pic {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden;
  background: radial-gradient(110% 90% at 50% 18%, color-mix(in srgb, var(--x1) 24%, #1b1b23), #09090d 82%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.ntf-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s var(--ease); }
.ntf-pic[data-state="ready"] .ntf-thumb { opacity: 1; }
.ntf-art { display: grid; place-items: center; max-width: 100%; transform: scale(.8); transition: opacity .3s; }
.ntf-pic[data-state="ready"] .ntf-art { opacity: 0; }
.ntf-pic[data-state="loading"] .ntf-art { opacity: .55; }
.ntf-pic[data-state="loading"]::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .1) 50%, transparent 70%);
  animation: ntf-shimmer 1.3s linear infinite;
}
.ntf-art .xfx-kart { inline-size: 5rem; }
.ntf-art .xfx-art-name, .ntf-art .xfx-art-title { max-inline-size: 7.2rem; }
.ntf-foil {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .3) 49%, transparent 60%);
  transform: translateX(-120%); animation: ntf-foil 4.2s ease-in-out calc(1.4s + var(--i) * .13s) infinite;
}
.ntf-cname {
  min-height: 2.3em; padding-inline: .12rem; font-size: .7rem; font-weight: 800; line-height: 1.15; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.ntf-cslot { display: flex; align-items: center; gap: .2rem; min-width: 0; padding-inline: .12rem; font-size: .58rem; font-weight: 700; line-height: 1.1; color: color-mix(in srgb, var(--x2) 62%, #8f909b); }
.ntf-cslot > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntf-cslot > span:first-child { display: grid; flex: none; }
.ntf-glyph { width: .78rem; height: .78rem; }
.ntf-card.gone { filter: grayscale(.9); opacity: .55; }
.ntf-cgone {
  position: absolute; top: .45rem; inset-inline-start: .45rem; padding: .1rem .4rem; border-radius: 999px; font-size: .56rem; font-weight: 800;
  color: #fff; background: rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .2);
}

/* how many pieces: one hero card, a few big ones, or a dense grid */
.ntf-rv.n1 .ntf-grid { grid-template-columns: minmax(0, 16rem); justify-content: center; }
.ntf-rv.n1 .ntf-card { padding: .4rem .4rem .5rem; gap: .25rem; }
.ntf-rv.n1 .ntf-cname { min-height: 0; font-size: 1.02rem; }
.ntf-rv.n1 .ntf-cslot { font-size: .72rem; }
.ntf-rv.n1 .ntf-glyph { width: 1rem; height: 1rem; }
.ntf-rv.n1 .ntf-art { transform: scale(1.15); }
.ntf-rv.few .ntf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ntf-rv.few .ntf-cname { font-size: .82rem; min-height: 0; }
.ntf-rv.few .ntf-cslot { font-size: .64rem; }
.ntf-rv.lots .ntf-grid { grid-template-columns: repeat(auto-fill, minmax(5.6rem, 1fr)); gap: .36rem; }
.ntf-rv.lots .ntf-pic { aspect-ratio: 16 / 9; }
.ntf-rv.lots .ntf-cname { font-size: .64rem; }
.ntf-rv.lots .ntf-cslot { display: none; }
.ntf-rv.lots .ntf-art { transform: scale(.66); }
.ntf-rv.replay .ntf-confetti { display: none; }

@keyframes ntf-spin { to { rotate: 360deg; } }
@keyframes ntf-rays-in { from { opacity: 0; scale: .35; } to { opacity: .8; scale: 1; } }
@keyframes ntf-glow-in { from { opacity: 0; scale: .3; } to { opacity: 1; scale: 1; } }
@keyframes ntf-breathe { 0%, 100% { opacity: .85; scale: 1; } 50% { opacity: 1; scale: 1.08; } }
@keyframes ntf-ring-out { 0% { opacity: 0; scale: .3; } 18% { opacity: 1; } 100% { opacity: 0; scale: 2.4; } }
@keyframes ntf-spark {
  from { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.2); }
  22% { opacity: 1; }
  to { opacity: .75; transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(1); }
}
@keyframes ntf-twinkle { 0%, 100% { opacity: .75; } 50% { opacity: .15; } }
@keyframes ntf-pop { 0% { opacity: 0; scale: .2; rotate: -14deg; } 60% { opacity: 1; scale: 1.14; rotate: 4deg; } 100% { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes ntf-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.3rem; } }
@keyframes ntf-sheen { to { background-position: -260% 0; } }
@keyframes ntf-panel-in { from { opacity: 0; translate: 0 1.2rem; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes ntf-card-in { from { opacity: 0; transform: perspective(40rem) translateY(1.2rem) rotateX(55deg) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes ntf-foil { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes ntf-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---- Removed sheet (items revoked): calm, neutral ----------------------------------------------- */
.modal.ntf-sheet {
  width: min(29rem, 100%); padding: .95rem 1.05rem .9rem; gap: 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(31, 32, 41, .97), rgba(15, 15, 21, .98));
}
.modal.ntf-sheet::before { background: #8e909d; box-shadow: none; }
.modal.ntf-sheet > .modal-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ntf-rv-sheet { flex: 1 1 auto; display: flex; flex-direction: column; gap: .6rem; min-height: 0; }
.ntf-rvhead { flex: none; display: flex; align-items: flex-start; gap: .7rem; }
.ntf-rvico { flex: none; width: 2.45rem; height: 2.45rem; padding: .55rem; border-radius: 12px; color: #d9dae2; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2); }
.ntf-rvhead-t { min-width: 0; }
.ntf-rvhead h2 { font-size: 1.1rem; font-weight: 800; line-height: 1.2; }
.ntf-rvhead p { margin-block-start: .18rem; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.ntf-rvlist { flex: 0 1 auto; min-height: 3.4rem; display: flex; flex-direction: column; gap: .32rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.ntf-rvlist::-webkit-scrollbar { display: none; }
.ntf-rvrow {
  flex: none; display: flex; align-items: center; gap: .6rem; padding: .32rem .5rem .32rem .35rem; border-radius: 11px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); animation: rise-in .35s var(--ease-out) both;
}
.ntf-rvart {
  flex: none; position: relative; width: 2.8rem; height: 2.8rem; border-radius: 9px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--x3) 40%, #1a1a22), #0b0b10 80%);
  filter: grayscale(.75) brightness(.85);
}
.ntf-rvart > * { transform: scale(.66); }
.ntf-rvart .xfx-kart { inline-size: 4.6rem; transform: scale(.55); }
.ntf-rvart .xfx-art-name, .ntf-rvart .xfx-art-title { font-size: .6rem; transform: scale(.5); }
.ntf-rvtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .05rem; }
.ntf-rvtxt b { font-size: .86rem; font-weight: 800; line-height: 1.2; color: #e9e9ee; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); text-decoration-thickness: 1px; }
.ntf-rvtxt small { font-size: .68rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntf-rvtag { flex: none; padding: .12rem .45rem; border-radius: 999px; font-size: .62rem; font-weight: 800; white-space: nowrap; color: #ffdcb0; background: rgba(255, 160, 60, .1); border: 1px solid rgba(255, 160, 60, .32); }
.ntf-rvx { flex: none; width: 1.35rem; height: 1.35rem; padding: .2rem; border-radius: 50%; color: #ffb0bc; background: rgba(255, 61, 90, .12); border: 1px solid rgba(255, 61, 90, .28); }
.ntf-note.calm { flex: none; max-width: none; border-inline-start-color: #8e909d; box-shadow: none; animation: none; }
.ntf-note.calm::after { color: rgba(255, 255, 255, .14); }
.ntf-note.calm .ntf-note-k { color: #b9bac4; }
.ntf-rvactions { flex: none; display: flex; justify-content: flex-end; }
.ntf-rvactions .btn { min-width: 7rem; }

/* ---- Notification centre (drawer on the inline-end side) ---------------------------------------- */
.modal-layer.ntf-center-layer {
  place-items: stretch end;
  padding: calc(var(--safe-t) + .5rem) calc(var(--safe-r) + .5rem) calc(var(--safe-b) + .5rem) calc(var(--safe-l) + .5rem);
  background: linear-gradient(270deg, rgba(4, 4, 7, .82), rgba(4, 4, 7, .42));
}
[dir="rtl"] .modal-layer.ntf-center-layer { background: linear-gradient(90deg, rgba(4, 4, 7, .82), rgba(4, 4, 7, .42)); }
.modal.ntf-center {
  width: min(25rem, 66vw); height: 100%; max-height: none; padding: 0; gap: 0; overflow: hidden; border-radius: 18px;
  background: linear-gradient(180deg, rgba(30, 30, 41, .97), rgba(13, 13, 19, .98));
  animation: ntf-drawer-in .36s var(--ease-out) both;
}
[dir="rtl"] .modal.ntf-center { animation-name: ntf-drawer-in-rtl; }
.modal.ntf-center::before { display: none; }
.modal.ntf-center > .modal-body { height: 100%; min-height: 0; }
.ntf-cbox { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.ntf-chead {
  flex: none; display: flex; align-items: center; gap: .6rem; padding: .6rem .6rem .55rem .8rem;
  border-block-end: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 106, 0, .13), rgba(255, 106, 0, 0));
}
[dir="rtl"] .ntf-chead { padding: .6rem .8rem .55rem .6rem; }
.ntf-chead-ico {
  flex: none; width: 2.15rem; height: 2.15rem; padding: .48rem; border-radius: 10px; color: #fff;
  background: var(--grad-brand); box-shadow: 0 4px 14px rgba(255, 106, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.ntf-chead-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ntf-chead-t h2 { font-size: 1.08rem; font-weight: 800; line-height: 1.1; }
.ntf-chead-sub { font-size: .7rem; font-weight: 600; color: var(--muted); }
.ntf-chead-sub.hot { color: var(--brand-hot); font-weight: 800; }
.ntf-markall {
  flex: none; display: inline-flex; align-items: center; gap: .3rem; min-height: 2rem; padding: 0 .6rem; border-radius: 999px; cursor: pointer;
  font: 700 .7rem/1 var(--font); color: #ffd7b5; background: rgba(255, 106, 0, .1); border: 1px solid rgba(255, 106, 0, .35);
}
.ntf-markall:active { transform: scale(.95); }
.ntf-x {
  flex: none; width: max(34px, 2.2rem); height: max(34px, 2.2rem); display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  font-size: 1.05rem; color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
}
.ntf-x:active { transform: scale(.92); }
.ntf-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .5rem; display: flex; flex-direction: column; gap: .38rem; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.ntf-row {
  --x1: #ff8a1f; --x2: #ffd9b8; --x3: #c24a00; --x4: #0b0b0f;
  appearance: none; margin: 0; width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .6rem;
  padding: .5rem .55rem .5rem .5rem; border-radius: 12px; text-align: start; cursor: pointer; color: var(--text); font: inherit;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06);
  transition: background-color .2s, border-color .2s, transform .14s var(--ease);
  animation: rise-in .35s var(--ease-out) both;
}
.ntf-row:active { transform: scale(.985); }
@media (hover: hover) { .ntf-row:hover { background: rgba(255, 255, 255, .06); } }
.ntf-row.unread {
  border-color: color-mix(in srgb, var(--x1) 38%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--x1) 15%, transparent), rgba(255, 255, 255, .03) 72%);
}
[dir="rtl"] .ntf-row.unread { background: linear-gradient(270deg, color-mix(in srgb, var(--x1) 15%, transparent), rgba(255, 255, 255, .03) 72%); }
.ntf-row-ico {
  position: relative; width: 2.55rem; height: 2.55rem; border-radius: 12px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--x1) 32%, #17171e), #0b0b10 82%);
  border: 1px solid color-mix(in srgb, var(--x1) 40%, transparent);
}
.ntf-row-em { display: grid; width: 1.65rem; height: 1.65rem; filter: drop-shadow(0 0 .35rem color-mix(in srgb, var(--x1) 60%, transparent)); }
.ntf-row-em svg { width: 100%; height: 100%; }
.ntf-row.revoke .ntf-row-ico { border-color: rgba(255, 255, 255, .12); background: radial-gradient(circle at 50% 32%, #262631, #0d0d12 82%); }
.ntf-row.revoke .ntf-row-em { filter: grayscale(1) brightness(.8); opacity: .8; }
.ntf-row-badge {
  position: absolute; bottom: -.28rem; inset-inline-end: -.32rem; width: 1.2rem; height: 1.2rem; padding: .16rem; border-radius: 50%;
  border: 2px solid #17171f; color: var(--x4); background: linear-gradient(180deg, var(--x2), var(--x1));
}
.ntf-row.revoke .ntf-row-badge { color: #fff; background: #5d5f6c; }
.ntf-row-main { min-width: 0; display: flex; flex-direction: column; gap: .24rem; }
.ntf-row-title { font-size: .84rem; font-weight: 800; line-height: 1.25; }
.ntf-chips { display: flex; flex-wrap: wrap; gap: .22rem; min-width: 0; }
.ntf-chip {
  display: inline-flex; align-items: center; gap: .22rem; max-width: 100%; min-width: 0; padding: .08rem .45rem .08rem .22rem; border-radius: 999px;
  font-size: .64rem; font-weight: 700; line-height: 1.3; color: #e7e7ee;
  background: color-mix(in srgb, var(--x1) 12%, rgba(255, 255, 255, .03)); border: 1px solid color-mix(in srgb, var(--x1) 30%, transparent);
}
[dir="rtl"] .ntf-chip { padding: .08rem .22rem .08rem .45rem; }
.ntf-chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntf-chip.more { padding: .08rem .45rem; color: var(--muted); background: rgba(255, 255, 255, .05); border-color: var(--line); }
.ntf-chip-em { flex: none; display: grid; width: .9rem; height: .9rem; }
.ntf-chip-em svg { width: 100%; height: 100%; }
.ntf-row.revoke .ntf-chip { filter: grayscale(.85); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .3); }
.ntf-row-note {
  padding-inline-start: .45rem; border-inline-start: 2px solid color-mix(in srgb, var(--x1) 55%, transparent);
  font-size: .7rem; line-height: 1.35; color: #c2c3cc; unicode-bidi: plaintext;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.ntf-row.revoke .ntf-row-note { border-inline-start-color: rgba(255, 255, 255, .2); }
.ntf-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: .38rem; padding-block-start: .1rem; }
.ntf-time { font-size: .64rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ntf-newdot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(255, 106, 0, .22), 0 0 10px rgba(255, 106, 0, .7); }
.ntf-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: 1.4rem 1rem; text-align: center; color: var(--muted); font-size: .8rem; }
.ntf-empty b { color: var(--text); font-size: .95rem; }
.ntf-empty-ico { width: 3rem; height: 3rem; padding: .75rem; border-radius: 50%; color: #8b8c97; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.ntf-empty .btn { margin-block-start: .3rem; }
.ntf-spin { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes ntf-drawer-in { from { opacity: 0; transform: translateX(2.5rem); } to { opacity: 1; transform: none; } }
@keyframes ntf-drawer-in-rtl { from { opacity: 0; transform: translateX(-2.5rem); } to { opacity: 1; transform: none; } }

/* ---- Garage spotlight after "Wear it now" ------------------------------------------------------- */
.gxs.ntf-spot::after {
  content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 2px var(--x2), inset 0 0 1.6rem color-mix(in srgb, var(--x1) 60%, transparent);
  animation: ntf-spot 2.6s ease-out both;
}
@keyframes ntf-spot { 0% { opacity: 0; } 12% { opacity: 1; } 30% { opacity: .35; } 45% { opacity: 1; } 100% { opacity: 0; } }

/* ---- Smaller phones (740×360 and below) --------------------------------------------------------- */
@media (max-height: 370px) {
  .ntf-emblem-wrap { width: 5rem; height: 5rem; }
  .ntf-emblem { width: 4.2rem; height: 4.2rem; }
  .ntf-sub { font-size: .76rem; }
  .ntf-note-t { -webkit-line-clamp: 2; }
  .ntf-actions { margin-block-start: .25rem; }
}

/* ---- Cheaper on low quality, still on reduced motion -------------------------------------------- */
html.lowfx .ntf-confetti, html.lowfx .ntf-foil, html.lowfx .ntf-sparks i:nth-child(odd) { display: none; }
html.lowfx .ntf-rays { animation: ntf-rays-in 1s var(--ease-out) .1s forwards; }
html.lowfx .ntf-title { filter: none; }
@media (prefers-reduced-motion: reduce) {
  .ntf-confetti, .ntf-sparks, .ntf-ring, .ntf-foil { display: none; }
  .ntf-rays, .ntf-glow, .ntf-emblem, .ntf-emblem-art, .ntf-giftbadge, .ntf-kicker, .ntf-title, .ntf-sub, .ntf-note,
  .ntf-actions, .ntf-pieces, .ntf-card, .ntf-bell.ring .ntf-bell-ico, .ntf-row, .modal.ntf-center, .gxs.ntf-spot::after { animation: none; }
  .ntf-rays { opacity: .5; }
}
