.event-count { display:grid; place-items:center; position:absolute; left:3px; bottom:2px; min-width:18px; height:18px; padding:0 4px; box-sizing:border-box; border:2px solid #483812; border-radius:999px; background:#ffd166; color:#332409; font:800 11px/1 Arial,sans-serif; box-shadow:0 1px 4px #0008; z-index:6; pointer-events:none; }
.event-count[hidden] { display:none; }
.nexus-menu a[href="#events"] .event-count { position:static; margin-left:auto; }
.game-dock a .event-count { top:-8px; right:4px; bottom:auto; left:auto; min-width:28px; width:auto; height:28px; padding:0 6px; border-radius:999px; font:700 15px/1 Arial,sans-serif; box-shadow:0 1px 4px #0005; z-index:5; }
.game-dock a:has(.dock-count) .event-count { right:auto; left:4px; }
[data-social-tab="friends"] { position:relative; }
.event-row { display:flex; align-items:center; gap:14px; padding:18px 14px; border-bottom:1px solid #ffffff1a; color:#c0cfdb; text-decoration:none; }
.event-row > svg { width:22px; height:22px; color:#ffd166; flex-shrink:0; }
.event-row > span { flex:1; }
.event-row b { display:block; font-weight:500; }
.event-row small { display:block; margin-top:7px; color:#95aabe; }
.event-row.is-unread { background:#ffd16608; color:#fff; }
.event-row.is-unread b { font-weight:700; }
.event-row:hover { background:#ffffff0b; }
.event-dot { flex-shrink:0; width:9px; height:9px; border-radius:50%; background:#ffd166; box-shadow:0 0 7px #ffd16644; }
#event-status { color:#aebfd1; font-size:12px; }

/* The menu trigger signals unread events with a dot. */
.menu-trigger > .event-count { width:9px; min-width:9px; height:9px; padding:0; font-size:0; line-height:0; color:transparent; border-width:1px; border-radius:50%; }

/* Match the profile content column. */
#app .game-shell #game-stage:has(#event-content){width:calc(100% - 24px);max-width:720px;box-sizing:border-box;margin-inline:auto;padding-inline:0!important}

#event-content{display:grid;gap:12px}
#event-content .event-row{border:1px solid #ffe2a25c;border-radius:14px;background:linear-gradient(120deg,#ffe4a327,#ac791312 65%,#fff4ce14);backdrop-filter:blur(18px) saturate(1.25);-webkit-backdrop-filter:blur(18px) saturate(1.25);box-shadow:inset 0 1px #fff1c546,0 6px 20px #0003;color:#fff2d5}
#event-content .event-row.is-unread{background:linear-gradient(120deg,#ffdc8740,#b88a1d20);border-color:#ffe2a28c}
#event-content .event-row:hover{background:linear-gradient(120deg,#ffe4a33a,#ac791325)}
#event-content .event-row small{color:#d2c8b4}

#event-content{gap:9px}
#event-content .event-row{padding:10px 14px;min-height:0}
#event-content .event-row small{margin-top:4px}
#event-content .event-dot{display:grid;place-items:center;width:22px;height:22px;background:#ffd166;color:#34250a;font:800 12px/1 Arial,sans-serif;font-style:normal;box-shadow:0 0 9px #ffd16644}
#game-stage>a.events-page-back{position:relative!important;top:auto!important;left:auto!important;margin:0 0 6px!important;translate:none!important;transform:none!important}

#app:has(#event-content)>.game-topbar.dashboard-tools{width:calc(100% - 24px)!important;max-width:720px!important;margin-inline:auto!important;padding-inline:0!important;box-sizing:border-box}

/* Visited history stays quiet; new events glow gold. */
#event-content .event-row:not(.is-unread){background:linear-gradient(120deg,#64717c24,#242c3640);border-color:#a4acb438;box-shadow:inset 0 1px #ffffff15,0 3px 12px #0002;color:#aeb6c0}
#event-content .event-row:not(.is-unread)>svg{color:#9ba4ae}
#event-content .event-row:not(.is-unread) small{color:#89939f}
#event-content .event-row.is-unread{background:linear-gradient(120deg,#ffd36d46,#aa741b2b 65%,#ffe5a333);border-color:#ffe092bd;box-shadow:inset 0 1px #fff2bc88,inset 0 0 18px #ffd16613,0 0 14px #ffc84d32,0 4px 15px #0003;color:#fff5da}
#event-content .event-row.is-unread>svg{color:#ffdc7d;filter:drop-shadow(0 0 4px #ffd16688)}
#event-content .event-row.is-unread small{color:#e8d6ac}

#app .game-topbar>[data-events-read]{position:absolute;left:0;top:12px;margin:0;max-width:190px;padding:8px 10px;font-size:11px;z-index:2}
@media(max-width:600px){#app .game-topbar>[data-events-read]{max-width:115px;padding:6px;font-size:10px;white-space:normal;line-height:1.2}}
