/* Notices on the site's pages (call out 253.B; notices.js): XenForo's four places in the site's own look, frosted glass
   with depth in the site's palette. Block and Scrolling sit under the header; Floating at the bottom right, above the
   Discord button and under Camp Messenger; Fixed along the bottom, under the Discord button and Camp Messenger. UORadio
   (the top bar) is never covered. XenForo's "hide on small screens": wide below 900px, medium below 650px, narrow below
   480px. Softly rounded, never pills; the x is solid and readable. */
.uor-notices { position: relative; z-index: 2; display: grid; gap: 10px; width: min(1240px, calc(100% - 36px)); margin: 0 auto; padding: 12px 0 0; }   /* the page's own width, as XenForo's sit inside its page (Jason, 25 Nov 2026) */
@media (max-width: 1040px) { .uor-notices { width: min(100% - 24px, 1240px); } }
.uor-notices[hidden], .uor-notices-list[hidden], .uor-notices-floating[hidden], .uor-notices-fixed[hidden], .uor-notices-overlay[hidden] { display: none; }
.uor-notices-list, .uor-notices-scroll ul, .uor-notices-floating, .uor-notices-fixed { margin: 0; padding: 0; list-style: none; }
.uor-notices-list { display: grid; gap: 10px; }
.uor-notice { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; border-radius: 14px; overflow-wrap: anywhere;
  border: 1px solid rgba(227, 197, 106, .38); background: linear-gradient(180deg, rgba(30, 38, 80, .78), rgba(14, 19, 46, .8)); color: #d6dcf0;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 14px 34px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .06);
  font: 15.5px/1.55 "Source Sans 3", system-ui, "Segoe UI", sans-serif; transition: opacity .25s ease, transform .25s ease; }
.uor-notice.is-leaving { opacity: 0; transform: translateY(-4px); }
.uor-notice--accent { border-color: #c8a84b; background: linear-gradient(180deg, rgba(242, 217, 138, .96), rgba(200, 168, 75, .96)); color: #1d1404; }
.uor-notice--dark { border-color: rgba(186, 205, 230, .2); background: rgba(6, 8, 16, .9); color: #e6e9f2; }
.uor-notice--light { border-color: rgba(255, 255, 255, .7); background: rgba(248, 250, 252, .94); color: #141a2c; }
/* the picture keeps its own shape, sized to fit the notice (Jason, 25 Nov 2026); a member's own picture stays a small circle */
.uor-notice-image { flex: none; align-self: center; display: flex; align-items: center; justify-content: center; }
.uor-notice-image img { display: block; width: auto; height: auto; max-width: 140px; max-height: 110px; object-fit: contain; border-radius: 10px; }
.uor-notice-image.is-avatar img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.uor-notices-floating .uor-notice-image img { max-width: 90px; max-height: 90px; }
.uor-notice-image.is-avatar img { border-radius: 12px; border: 2px solid rgba(227, 197, 106, .55); }
.uor-notice-content { flex: 1 1 auto; min-width: 0; align-self: center; }
.uor-notice-content p { margin: 0 0 6px; }
.uor-notice-content p:last-child { margin-bottom: 0; }
.uor-notice-content a { color: #f2d98a; text-decoration: underline; text-underline-offset: 2px; }
.uor-notice--accent .uor-notice-content a, .uor-notice--light .uor-notice-content a { color: #1d3f8f; }
.uor-notice-content .nte-list { margin: 0 0 6px; padding-left: 22px; }
.uor-notice-content .nte-align-center { text-align: center; } .uor-notice-content .nte-align-right { text-align: right; } .uor-notice-content .nte-align-justify { text-align: justify; }
.uor-notice-content .nte-indent-1 { margin-left: 20px; } .uor-notice-content .nte-indent-2 { margin-left: 40px; } .uor-notice-content .nte-indent-3 { margin-left: 60px; }
.uor-notice-content .nte-size-1 { font-size: 9px; } .uor-notice-content .nte-size-2 { font-size: 10px; } .uor-notice-content .nte-size-3 { font-size: 12px; } .uor-notice-content .nte-size-4 { font-size: 15px; }
.uor-notice-content .nte-size-5 { font-size: 18px; } .uor-notice-content .nte-size-6 { font-size: 22px; } .uor-notice-content .nte-size-7 { font-size: 26px; }
.uor-notice-content .nte-heading { margin: 0 0 6px; font: 800 1.25em/1.2 "Fraunces", Georgia, serif; }
.uor-notice-content .nte-quote { margin: 0 0 6px; padding: 6px 10px; border-left: 3px solid #e3c56a; border-radius: 0 8px 8px 0; background: rgba(227, 197, 106, .08); }
.uor-notice-content .nte-quote-head { font-weight: 700; }
.uor-notice-content .nte-spoiler { margin: 0 0 6px; padding: 6px 10px; border-radius: 8px; border: 1px dashed rgba(255, 236, 190, .3); }
.uor-notice-content .nte-ispoiler { filter: blur(5px); cursor: pointer; }
.uor-notice-content .nte-ispoiler.nte-shown { filter: none; }
.uor-notice-content hr.nte-hr { margin: 8px 0; border: 0; border-top: 1px solid rgba(255, 236, 190, .28); }
.uor-notice-content code { padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, .1); font: .92em Consolas, "SFMono-Regular", Menlo, monospace; }
.uor-notice-content img.nte-emoji { width: 1.4em; height: auto; vertical-align: text-bottom; }
.uor-notice-dismiss { position: relative; flex: none; width: 30px; height: 30px; margin: -4px -8px 0 0; padding: 0; border-radius: 8px; border: 1px solid rgba(255, 236, 190, .3); cursor: pointer;
  background: rgba(10, 14, 32, .85); color: #f3ead2; }
.uor-notice-dismiss::before, .uor-notice-dismiss::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; border-radius: 1px; background: currentColor; }
.uor-notice-dismiss::before { transform: translate(-50%, -50%) rotate(45deg); }
.uor-notice-dismiss::after { transform: translate(-50%, -50%) rotate(-45deg); }
.uor-notice-dismiss:hover { border-color: #e3c56a; }
.uor-notice-dismiss:focus-visible { outline: 2px solid #e3c56a; outline-offset: 2px; }
.uor-notice--accent .uor-notice-dismiss, .uor-notice--light .uor-notice-dismiss { background: #1d1404; color: #f3ead2; border-color: #1d1404; }
/* Scrolling: one box rolling through them, its dots under it */
.uor-notices-scroll { display: grid; gap: 6px; }
.uor-notices-scroll:not(:has(.uor-notice)) { display: none; }
.uor-notices-scroll .uor-notice[hidden] { display: none; }
.uor-notices-scroll.is-multi .uor-notice { animation: uor-notice-in .35s ease; }
.uor-notices-dots { display: flex; justify-content: center; gap: 8px; }
.uor-notices-dots button { width: 22px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(214, 220, 240, .35); cursor: pointer; }
.uor-notices-dots button[aria-current="true"] { background: #e3c56a; }
.uor-notices-dots button:focus-visible { outline: 2px solid #e3c56a; outline-offset: 2px; }
@keyframes uor-notice-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
/* Floating: bottom right, 300px, over the Discord button and under Camp Messenger */
.uor-notices-floating { position: fixed; z-index: 35; right: 20px; bottom: 86px; width: 300px; max-width: calc(100% - 32px); display: grid; gap: 10px; }
.uor-notices-floating .uor-notice { opacity: 0; transform: translateY(10px); pointer-events: none; }
.uor-notices-floating .uor-notice.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.uor-notices-floating .uor-notice.is-leaving { opacity: 0; transform: translateY(10px); }
/* Fixed: full width along the bottom, under the Discord button and Camp Messenger (room kept for both, so its x is never under them) */
.uor-notices-fixed { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; display: grid; }
.uor-notices-fixed .uor-notice { border-radius: 0; border-width: 1px 0 0; padding-right: 300px; }
html.has-fixed-notice .uor-notices-floating { bottom: 150px; }
@media (prefers-reduced-motion: reduce) {
  .uor-notice, .uor-notices-floating .uor-notice { transition: none; }
  .uor-notices-scroll.is-multi .uor-notice { animation: none; }
}
@media (max-width: 900px) { .uor-notice--hide-wide { display: none; } }
@media (max-width: 650px) {
  .uor-notice--hide-medium { display: none; }
  .uor-notice { padding: 12px 14px; gap: 10px; font-size: 15px; }
  .uor-notices-floating { right: 16px; left: 16px; width: auto; max-width: none; bottom: 82px; }
  .uor-notices-fixed .uor-notice { padding-right: 80px; }
}
@media (max-width: 480px) { .uor-notice--hide-narrow { display: none; } }
/* "Leaving UORealms?" (approved mockup mockups/leaving-site): Notices' own copy of the box */
.uor-notice-leave { width: min(460px, calc(100% - 32px)); max-width: none; max-height: none; margin: auto; padding: 110px 0 0; border: 0; background: transparent; overflow: visible; color: #d6dcf0; }
.uor-notice-leave::backdrop { background: rgba(2, 4, 12, .72); backdrop-filter: blur(3px); }
.uor-notice-leave-card { position: relative; padding: 120px 26px 24px; text-align: center; border-radius: 18px; border: 1px solid rgba(227, 197, 106, .45);
  background: linear-gradient(180deg, #1e2650, #11163a); box-shadow: 0 30px 70px rgba(0, 0, 0, .65); font: 16px/1.55 "Source Sans 3", system-ui, "Segoe UI", sans-serif; }
.uor-notice-leave-pic { position: absolute; left: 50%; top: -112px; width: 260px; height: auto; transform: translateX(-50%); filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .6)); }
.uor-notice-leave h2 { margin: 0 0 10px; font: 800 28px/1.15 "Fraunces", Georgia, serif; color: #f3ead2; }
.uor-notice-leave p { margin: 0 0 16px; color: #d6dcf0; font-size: 15.5px; }
.uor-notice-leave-dest { display: flex; justify-content: center; gap: 8px; align-items: baseline; margin: 0 0 20px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 236, 190, .12); background: rgba(5, 8, 20, .55); font-size: 15px; }
.uor-notice-leave-dest span { color: #a5aecb; }
.uor-notice-leave-dest b { color: #f3ead2; overflow-wrap: anywhere; }
.uor-notice-leave-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uor-notice-leave-btn { height: 44px; display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0 12px; border-radius: 9px; font: 700 15px "Source Sans 3", system-ui, "Segoe UI", sans-serif;
  border: 1px solid #4a5591; background: #2a3366; color: #f3ead2; cursor: pointer; }
.uor-notice-leave-btn.go { border-color: #c8a84b; background: linear-gradient(180deg, #f2d98a, #c8a84b); color: #1d1404; }
.uor-notice-leave-btn:focus-visible { outline: 2px solid #e3c56a; outline-offset: 2px; }
@media (max-width: 560px) {
  .uor-notice-leave { padding-top: 96px; }
  .uor-notice-leave-card { padding: 104px 18px 18px; }
  .uor-notice-leave-pic { width: 220px; top: -96px; }
  .uor-notice-leave h2 { font-size: 25px; }
  .uor-notice-leave-acts { grid-template-columns: 1fr; }
}

/* Overlay (Jason, 25 Nov 2026): centered on the page over a dimmed cover, one at a time, its x at the top right; sized to
   the screen on tablets and phones (its picture above its words on a phone), never a text cursor inside it */
.uor-notices-overlay { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(4, 6, 14, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); cursor: default; }
.uor-notices-overlay[hidden] { display: none; }
.uor-notices-overlay ul { margin: 0; padding: 0; list-style: none; width: min(600px, 100%); }
.uor-notices-overlay .uor-notice { align-items: center; padding: 26px 56px 26px 28px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; user-select: none; -webkit-user-select: none; caret-color: transparent; }
.uor-notices-overlay .uor-notice a { cursor: pointer; }
.uor-notices-overlay .uor-notice ~ .uor-notice { display: none; }
.uor-notices-overlay .uor-notice-dismiss { position: absolute; top: 12px; right: 12px; margin: 0; }
.uor-notices-overlay .uor-notice-image img { max-width: 200px; max-height: 180px; }
@media (max-width: 760px) { .uor-notices-overlay ul { width: min(520px, 100%); } .uor-notices-overlay .uor-notice-image img { max-width: 150px; max-height: 140px; } }
@media (max-width: 560px) {
  .uor-notices-overlay { padding: 14px; }
  .uor-notices-overlay .uor-notice { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 22px 18px 18px; max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); }
  .uor-notices-overlay .uor-notice-image img { max-width: 120px; max-height: 110px; }
}
