/* the "Report" window (scripts/report.js) and the small flags that open it */
dialog.rp { width: min(520px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow: hidden; border: 1px solid rgba(140, 180, 255, .18); border-radius: 22px; background: linear-gradient(180deg, #151e33, #0c111e 60%); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .85); color: #e8eef9; }
dialog.rp[open] { display: flex; animation: rp-in .28s cubic-bezier(.2, .9, .25, 1) both; }
dialog.rp::backdrop { background: rgba(3, 6, 12, .72); backdrop-filter: blur(4px); }
@keyframes rp-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.rp svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rp [hidden] { display: none !important; }
.rp .rp-box { display: flex; flex-direction: column; width: 100%; max-height: calc(100dvh - 26px); margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.rp-head { display: flex; flex: none; align-items: center; gap: 13px; margin: 0; padding: 17px 18px 15px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: none; }
.rp-head > div { flex: 1; min-width: 0; text-align: left; }
.rp-head h2 { margin: 0; color: #fff; font-size: 17px; font-weight: 780; letter-spacing: -.01em; line-height: 1.3; }
.rp-head p { margin: 2px 0 0; color: #8d9ab0; font-size: 12.5px; }
.rp-flag { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: rgba(248, 113, 113, .13); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .32); color: #fca5a5; }
.rp-flag svg { width: 19px; height: 19px; }
.rp .rp-x { display: grid; flex: none; place-items: center; width: 32px; height: 32px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; box-shadow: none; color: #8d9ab0; cursor: pointer; transform: none; }
.rp .rp-x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.rp-x svg { width: 16px; height: 16px; }
.rp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 15px 18px 16px; text-align: left; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.rp-state { margin: 0; padding: 26px 4px; color: #aebbd3; font-size: 14px; line-height: 1.55; text-align: center; }
.rp .rp-label { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; color: #c9d5ea; font-size: 12.5px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.rp-label svg { width: 14px; height: 14px; color: #8fc9ff; }
.rp-label small { color: #6f7f9c; font-size: 11.5px; font-weight: 600; }
.rp-attached { margin: 0 0 16px; padding: 12px 13px; border: 1px dashed rgba(143, 201, 255, .3); border-radius: 15px; background: rgba(3, 7, 15, .5); }
.rp-who { display: flex; align-items: center; gap: 10px; }
.rp-who img { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #0b1018; object-fit: cover; }
.rp-attached.is-game .rp-who img { width: 44px; height: 44px; border-radius: 11px; }
.rp-who div { display: grid; gap: 2px; min-width: 0; }
.rp-who strong { overflow: hidden; color: #fff; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.rp-who small { color: #8d9ab0; font-size: 11.8px; }
.rp-attached blockquote { max-height: 112px; margin: 10px 0 0; padding: 9px 12px; overflow-y: auto; border: 0; border-left: 3px solid rgba(143, 201, 255, .5); border-radius: 0 10px 10px 0; background: rgba(255, 255, 255, .04); color: #e3ebf8; font-size: 13.5px; font-style: normal; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.rp-attached blockquote.is-empty { color: #8d9ab0; font-size: 12.5px; }
.rp-extra { margin: 8px 0 0; color: #8d9ab0; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.rp-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0 0 16px; }
.rp-reasons label { position: relative; display: flex; margin: 0; cursor: pointer; }
.rp-reasons input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.rp-reasons span { display: flex; flex: 1; align-items: center; min-height: 38px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 11px; background: rgba(255, 255, 255, .03); color: #aebbd3; font-size: 12.5px; font-weight: 620; line-height: 1.3; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.rp-reasons label:hover span { background: rgba(255, 255, 255, .07); color: #fff; }
.rp-reasons input:checked + span { border-color: #4aa8ff; background: rgba(74, 168, 255, .16); box-shadow: inset 0 0 0 1px #4aa8ff; color: #fff; }
.rp-reasons input:focus-visible + span { outline: 2px solid #8fd0ff; outline-offset: 1px; }
.rp textarea { display: block; width: 100%; min-height: 74px; margin: 0; padding: 10px 12px; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, .13); border-radius: 12px; outline: 0; background: rgba(3, 7, 15, .6) !important; color: #fff; font: 500 13.5px/1.5 Inter, sans-serif; resize: vertical; }
.rp textarea:focus { border-color: rgba(96, 175, 255, .75); }
.rp-meta { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; color: #6f7f9c; font-size: 11.8px; }
.rp .rp-label-email { margin-top: 14px; }
.rp input[type="email"] { display: block; width: 100%; height: 40px; margin: 0; padding: 0 12px; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, .13); border-radius: 12px; outline: 0; background: rgba(3, 7, 15, .6) !important; color: #fff; font: 500 13.5px Inter, sans-serif; }
.rp input[type="email"]:focus { border-color: rgba(96, 175, 255, .75); }
.rp-safe { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0 0; padding: 10px 12px; border: 1px solid rgba(250, 204, 21, .32); border-radius: 12px; background: rgba(250, 204, 21, .1); color: #fde68a; font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.rp-safe svg { flex: none; width: 17px; height: 17px; margin-top: 1px; }
.rp-foot { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 0; padding: 13px 18px 15px; border-top: 1px solid rgba(255, 255, 255, .07); background: none; }
.rp-note { flex: 1 1 180px; color: #f3d38c; font-size: 12px; line-height: 1.4; text-align: left; }
.rp-note[data-tone="error"] { color: #fca5a5; }
.rp-note:empty { display: block; }
.rp .rp-btn { width: auto; height: 38px; min-height: 0; margin: 0; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 11px; background: rgba(255, 255, 255, .06); box-shadow: none; color: #e6edf7; font: 650 13px/1 Inter, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; transform: none; }
.rp .rp-btn:hover { background: rgba(255, 255, 255, .11); }
.rp .rp-btn.is-send { border-color: transparent; background: #e5484d; color: #fff; }
.rp .rp-btn.is-send:hover:not(:disabled) { background: #f05a5f; }
.rp .rp-btn.is-send:disabled { background: rgba(229, 72, 77, .3); color: rgba(255, 255, 255, .6); cursor: default; }

/* ---------------------------------------------------------------- the flags that open it */
.rp-open { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px; width: auto; height: auto; min-width: 0; min-height: 0; margin: 0; padding: 4px 6px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: #7f8da8; font: 600 12px/1.2 Inter, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; transform: none; transition: color .15s ease, background .15s ease, opacity .15s ease; }
button.rp-open:hover { background: rgba(248, 113, 113, .13); color: #fca5a5; transform: none; }
button.rp-open:focus-visible { outline: 2px solid #8fd0ff; outline-offset: 1px; }
.rp-open svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* under a review, beside the votes */
button.rp-open.gp-report, button.rp-open.pf-report { margin-left: auto; }
.gp-report + .gp-link-danger { margin-left: 0 !important; }
.pf-report ~ form { margin-left: 0; }
/* in the three-dot menu of a game */
.gp-menu .gp-menu-item.is-report { margin-top: 5px; border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0 0 11px 11px; color: #fca5a5; }
.gp-menu .gp-menu-item.is-report svg { color: #fca5a5; }
.gp-menu .gp-menu-item.is-report:hover { background: rgba(248, 113, 113, .13); color: #fecaca; }
/* on a wall card and a reply: quiet until the card (or that one reply) is pointed at. The flag and the bin beside it are
   the same square, so they read as one small group in the corner. */
.wc-head button.rp-open, .wc-reply-top button.rp-open { border: 1px solid transparent; color: #8fa0bd; opacity: 0; }
.wc-head button.rp-open { width: 32px; height: 32px; padding: 0; border-radius: 10px; }
.wc-head button.rp-open svg { width: 15px; height: 15px; }
.wc-head button.rp-open + .news-delete { margin-left: -8px; }
.news-game-event:hover .wc-head button.rp-open, .news-game-event.is-controls-visible .wc-head button.rp-open { opacity: .8; }
/* one reply: it lights up as a whole, so it is clear which words the flag in its corner belongs to */
.wc-replies .wc-reply { padding-right: 8px; border-radius: 0 12px 12px 0; transition: background .15s ease, border-color .15s ease; }
.wc-replies .wc-reply:hover { border-left-color: rgba(96, 165, 250, .55); background: rgba(255, 255, 255, .035); }
.wc-reply-top { min-height: 22px; }
.wc-reply-top button.rp-open { width: 26px; height: 26px; margin: -2px 0 -2px auto; padding: 0; border-radius: 8px; }
.wc-reply-top button.rp-open svg { width: 13px; height: 13px; }
.wc-reply-top .wc-reply-del { width: 26px; height: 26px; margin-top: -2px; margin-bottom: -2px; padding: 0; }
.wc-reply-top button.rp-open + .wc-reply-del { margin-left: -4px; }
.wc-reply:hover .wc-reply-top button.rp-open { border-color: rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .04); opacity: 1; }
.wc-head button.rp-open:hover, .wc-reply:hover .wc-reply-top button.rp-open:hover { border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .14); color: #fca5a5; opacity: 1; }
.wc-head button.rp-open:focus-visible, .wc-reply-top button.rp-open:focus-visible { opacity: 1; }
/* in a message, beside the heart and the time */
.msg-meta button.rp-open { padding: 0 3px; color: inherit; opacity: 0; }
.msg-meta button.rp-open svg { width: 12px; height: 12px; }
.profile-chat-message:hover .msg-meta button.rp-open, .profile-chat-message.show-time .msg-meta button.rp-open, .msg-meta button.rp-open:focus-visible { opacity: .75; }
.profile-chat-message .msg-meta button.rp-open:hover { background: none; color: #fca5a5; opacity: 1; }
/* nothing can be hovered on a touch screen: the flags are always there */
@media (hover: none) { .news-game-event .wc-head button.rp-open, .wc-reply .wc-reply-top button.rp-open { opacity: .65; } .wc-reply .wc-reply-top .wc-reply-del { opacity: .65; } .msg-meta button.rp-open { opacity: .55; } }
@media (max-width: 520px) { .rp-reasons { grid-template-columns: minmax(0, 1fr); } .rp-note { flex-basis: 100%; } .rp .rp-foot .rp-btn { flex: 1; } .rp-meta { flex-direction: column; gap: 2px; } }
@media (prefers-reduced-motion: reduce) { dialog.rp[open] { animation: none; } }
