center {
  text-align: center;
  }

.centre {
  text-align: center;
  }

/*Contains everything*/
.wrapper {
  width: 1150px;
  background: white;
  margin: 0 auto;
  top: 0;
  margin-top: -10px;
  border-left: 0px solid white;
  border-right: 0px solid white;  
  margin-bottom: -10px;
  }
  
/*Contains main and sidebar divs*/
.wrapper-2 {
  position: relative;
}
  
/*Header and footer images*/
.header, .footer {
  overflow: hidden;
  background: linear-gradient(rgb(0,0,0,0.1),rgb(0,0,0,0.1));
  background-size:cover;
  }


.footer {
  color: #ffffff;
  }


.footer {
  clear: both;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.footer .inner a {
  text-decoration: underline;
  margin-left: 2px;
  margin-right: 2px;
  color: rgb(136, 136, 136);
  font-size: 0.8em;
}

.footer .inner p {
  margin: 0;
  color: rgb(136, 136, 136);
  font-size: 0.95em;
}


  
.header img {
  border-top: 0px;
  height: 10em;
  padding-top: 3px;

}
  
  
/*Big title at the top of the page.*/  
  
/*Override default margins/padding for headings.*/
.title h1, .title h2, .title h3 {
  padding:0;
  margin: 0;
  }

/*These three classes are just for defining the boundaries and size of the main and sidebar columns. Most fancy styling goes in the 'box' class.*/
.main, .sidebar-right {
  display: inline-block;
  }
  
.sidebar-left, .sidebar-right {
  width: 200px;
  position: absolute;
  top: 0;
  }

.sidebar-left {
  margin-left: 10px;
  }
  
.main {
  margin-left: 220px;
  width: 710px;
  }
  
.sidebar-right {
  margin-right: 10px;
  margin-left: 10px;
  }
  
/*Box used for individual sections in the sidebar, center column, etc.*/
.box {  
  padding: 5px 10px 0px 10px;
  background: #e2dcc1;
  color: white;
  border-top: 5px solid #187b9b;
  border-bottom: 5px solid #187b9b;
  margin: 10px 0px 15px 0px;
  }
  
/*Prevent overflow of large images in main text areas.*/
.box img {
  max-width: 100%;
  height: auto;
  }
  
/* for narrow screens. Makes the sidebars narrower, and makes width of the 
 * center/main div 50% of the viewport width.
 */
@media(max-width:1180px) {
  .wrapper {
    width: calc(440px + 50vw);
    }
  .main {
    width: 50vw;
    }
  #wrapper-wide {
    width: min(calc(640px + 50vw), 100vw);
    }
  #main-wide {
    width: min(calc(50vw + 200px), calc(100vw - 360px));
    }
  }
  
@media(max-width:910px) {
  .wrapper {
    width: calc(360px + 52vw);
    }
  .sidebar-left, .sidebar-right {
    width: 160px;
    }
  .main {
    margin-left: 180px;
    width: 52vw;
    }
  #wrapper-wide {
    width: min(calc(560px + 52vw), 100vw);
    }
  #main-wide {
    margin-left: 180px;
    width: min(calc(52vw + 200px), calc(100vw - 340px));
    }
  }
  
/* Mobile compatibility. Puts everything into a standard vertical layout. */
@media(orientation:portrait) {
  .wrapper, #wrapper-wide {
    width: 96vw;
    margin: 0 auto;
    padding:0;
    position: relative;
    }
  .wrapper-2 {
    width: 94vw;
    margin: 0 auto;
    padding:0;
    position: relative;
    }
  .sidebar-left, .main, #main-wide, .sidebar-right {
    position: relative;
    width: 92vw;
    margin: 0.25rem 1vw;
    }
  .sidebar-left, .sidebar-right {
    font-size: 0.95em;
    }
  }

.wrapper {
  background: none;
  top: 0;
  margin: 0 auto;
  }

.wrapper {
  width: 870px;
  }

#wrapper-wide {
  width: 1070px;
  }
  
.sidebar-left, .sidebar-right {
  width: 175px;
  }
  
.main {
  margin-left: 185px;
  width: 500px;
  }

#main-wide {
  display: inline-block;
  margin-left: 185px;
  width: 700px;
  }
  
.sidebar-left {
  margin-left: 0px;
  }
  
.wrapper, .links a {
  color: white;
  }
  
.box {
  border: 3px double #333;
  background: #fff;
  padding: 0;
  }
  
.header {
  border: 3px double #ff4500;
  background: #121212;
  text-align: center;
  margin-top: 15px;
  top: 0;
  height: auto;
  }
  
.links {
  margin-top: 2.5em;
  }
  



.box h1, .box h2, .box h3, .box h4, .box h5 {
  background: #141414;
  color: #ff4500;
  margin: 0;
  padding: 0.35em 0.25em 0.3em 0.25em;
  text-align: center;
  border-bottom: 3px double #333;
  }

.box h1 a, .box h2 a, .box h3 a, .box h4 a, .box h5 a {
  text-decoration: underline;
  }
  
.inner {
  padding: 0.25em 1em 0.3em 1em;
  font-size: 1.075em;
  }
  
  
/* for narrow screens: slightly narrows sidebars, and makes the width
 * of the main/center div flexible (sized relative to viewport width.)
 */
@media(max-width:880px) {
  .wrapper {
    width: calc(340px + 50vw);
    }
  .sidebar-left, .sidebar-right {
    width: 160px;
    }
  .main {
    margin-left: 170px;
    width: 50vw;
    }
  #wrapper-wide {
    width: min(calc(540px + 50vw), 100vw);
    }
  #main-wide {
    margin-left: 170px;
    width: min(calc(50vw + 200px), calc(100vw - 330px));
    }
  }

/*mobile compatibility. Just turns it all into a vertical layout.*/
@media(orientation:portrait) {
  .wrapper, #wrapper-wide {
    width: 96vw;
    margin: 0 auto;
    padding:0;
    position: relative;
    }
  .wrapper-2 {
    width: 94vw;
    margin: 0 auto;
    padding:0;
    position: relative;
    }
  .sidebar-left, .main, #main-wide, .sidebar-right {
    position: relative;
    width: 92vw;
    margin: 0.25rem 1vw;
    }
  }

@font-face {
  font-family: TimesNewPixel;
  src: url('../TimesNewPixel.ttf');
}

@font-face {
  font-family: Seraphim;
  src: url('../Seraphimb1.ttf');
}

#mirror-alert code {
  font: 1.2em TimesNewPixel;
  letter-spacing: 2px;
  font-weight: bolder;
  padding: 2px;
  margin: 1.5px;
  color: black;
  text-decoration: underline;
}

body {
  font: 0.75em TimesNewPixel;
  letter-spacing: 1px;
  padding: 0;
  margin: 0;
  color: #ffffff;
  background-color: #010101 !important;
}

#bgs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

#bgs * {
  position: absolute;
  width: 100vw; height: 100vh;
  left: 0; top: 0;
  mix-blend-mode: lighten;
  background-image: url('../images/bg.gif');
  pointer-events: none;
} 
#bg1 {
  opacity: 75%;
  background-size: 200px 200px;
  animation: up1 5s linear infinite;
  z-index: 1;
}
#bg2 {
  opacity: 100%;
  background-size: 300px 300px;
  animation: up2 5s linear infinite, left 10s linear infinite;
  z-index: 2;
}
#bg3 {
  opacity: 25%;
  background-size: 400px 400px;
  animation: up3 17s linear infinite;
  z-index: 3;
}
  
@keyframes up1 {
  0% {background-position-y: 0px}
  100% {background-position-y: -200px}
}
@keyframes up2 {
  0% {background-position-y: 0px}
  100% {background-position-y: -300px}
}
@keyframes up3 {
  0% {background-position-y: 0px}
  100% {background-position-y: -400px}
}
@keyframes left {
  0% {background-position-x: 0px}
  100% {background-position-x: -300px}
}


a:link,
a:visited,
a:active {
  color: #ff4500;
  text-decoration: none;
}

a:hover {
  color: #ff4500;
}

a img {
  border-width: 0;
}

b {
  color: #ff4500;
  font-weight: bold;
}



.title {
  height: 20px;
}

.badge-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.badge-marquee .badge-track {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  will-change: transform;
  animation: badge-marquee-slide-right linear infinite;
  animation-duration: var(--badge-marquee-duration, 25s);
}

.badge-marquee .badge-track img {
  flex: 0 0 auto;
  height: auto;
}

.badge-marquee--right .badge-track {
  transform: translateX(-50%);
}

@keyframes badge-marquee-slide-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .badge-marquee .badge-track {
    animation: none !important;
    transform: translateX(0) !important;
  }
}

.box {
  background-color: #191919;
  border: 1px solid #ff4500;
  padding: 8px;
  margin-bottom: 8px;
  scrollbar-width: thin;
}


#navigation {
  /* smoothly scale between a sensible minimum and maximum and remain centered */
  width: clamp(320px, 92%, 605px);
  max-width: 100%;
  margin: 0 auto;
  list-style: none;
  background-color: transparent;
  border-bottom: 0px solid #ff4500;
  border-top: 0px solid #ff4500;
  display: flex;
  flex-wrap: wrap; /* allow items to wrap on small screens */
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0; /* ensure padding doesn't offset centering */
  box-sizing: border-box;
}

/* Use flex layout for list items so they keep their position when container scales */
#navigation li {
  float: none;
  flex: 0 0 auto;
}



#navigation li a {
  display: block;
  padding: 2px 10px;
  font: italic 1.2em Seraphim;
  text-transform: lowercase;
  border-radius: 10px;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: normal;
  margin-right: 0px;
  margin-left: 5px;
  color: #000;
  background: #ff4500;
  border: 0px solid #000000;
}

#blackbar li a:hover {
  color: #b73100;
  background-color: #ffaa00;
}


html::-webkit-scrollbar-button:vertical:start:increment,
html::-webkit-scrollbar-button:vertical:end:decrement,
html::-webkit-scrollbar-button:horizontal:start:increment,
html::-webkit-scrollbar-button:horizontal:end:decrement {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  @supports (scrollbar-color: rgba(47, 47, 47, 0.3) rgba(0, 0, 0, 0.3)) {
    .container,
    .box {
      scrollbar-width: thin;
      scrollbar-color: rgba(47, 47, 47, 0.3) rgba(0, 0, 0, 0.3);
    }
  }

  html::-webkit-scrollbar {
    width: 16px;
    background: #121212;
  }

  html::-webkit-scrollbar-corner {
    background: #1a1a1a;
  }

  html::-webkit-scrollbar-thumb {
    background-color: #2f2f2f;
    border-width: 1px;
    border-style: solid;
    border-color: #3a3a3a;
    border-top-color: #333333;
    border-left-color: #333333;
    box-shadow: inset 1px 1px #3f3f3f, inset -1px -1px #101010;
  }

  html::-webkit-scrollbar-track {
    background-color: #181818;
    background-image:
      linear-gradient(to right, rgba(90, 90, 90, 0.2), rgba(45, 45, 45, 0.1)),
      linear-gradient(to right, #0e0e0e 50%, #1f1f1f 50%),
      linear-gradient(to bottom, #0e0e0e 50%, #1f1f1f 50%);
    background-size: 3px 3px;
    background-blend-mode: normal, difference, normal;
    border: 1px solid #101010;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.55);
  }

  html::-webkit-scrollbar-button {
    background-color: #252525;
    border-width: 1px;
    border-style: solid;
    border-color: #3a3a3a;
    border-top-color: #2f2f2f;
    border-left-color: #2f2f2f;
    box-shadow: inset 1px 1px #3f3f3f, inset -1px -1px #0f0f0f;
  }

  html::-webkit-scrollbar-button:start:decrement,
  html::-webkit-scrollbar-button:end:increment {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px;
  }

  html::-webkit-scrollbar-button:start:decrement:active,
  html::-webkit-scrollbar-button:end:increment:active {
    border: 1px solid #888;
    box-shadow: none;
    background-position: 3.2px 3.2px;
  }

  html::-webkit-scrollbar-button:start:decrement:horizontal:decrement,
  html::-webkit-scrollbar-button:end:increment:horizontal:decrement {
    background-image: url("data:image/svg+xml,%3Csvg  transform='rotate(180)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.86 6.86'%3E%3Cpath fill='%231d1d1b' d='M4.41 2.94v-.98h-.98V.98h-.98V0h-.98V6.86h.98v-.98h.98V4.9h.98v-.98h.98v-.98h-.98z'/%3E%3C/svg%3E");
  }

  html::-webkit-scrollbar-button:start:decrement:horizontal:increment,
  html::-webkit-scrollbar-button:end:increment:horizontal:increment {
    background-image: url("data:image/svg+xml,%3Csvg  transform='rotate(0)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.86 6.86'%3E%3Cpath fill='%231d1d1b' d='M4.41 2.94v-.98h-.98V.98h-.98V0h-.98V6.86h.98v-.98h.98V4.9h.98v-.98h.98v-.98h-.98z'/%3E%3C/svg%3E");
  }

  html::-webkit-scrollbar-button:start:decrement:vertical:decrement,
  html::-webkit-scrollbar-button:end:increment:vertical:decrement {
    background-image: url("data:image/svg+xml,%3Csvg  transform='rotate(270)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.86 6.86'%3E%3Cpath fill='%231d1d1b' d='M4.41 2.94v-.98h-.98V.98h-.98V0h-.98V6.86h.98v-.98h.98V4.9h.98v-.98h.98v-.98h-.98z'/%3E%3C/svg%3E");
  }

  html::-webkit-scrollbar-button:start:decrement:vertical:increment,
  html::-webkit-scrollbar-button:end:increment:vertical:increment {
    background-image: url("data:image/svg+xml,%3Csvg  transform='rotate(90)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.86 6.86'%3E%3Cpath fill='%231d1d1b' d='M4.41 2.94v-.98h-.98V.98h-.98V0h-.98V6.86h.98v-.98h.98V4.9h.98v-.98h.98v-.98h-.98z'/%3E%3C/svg%3E");
  }
}

html.custom-scrollbar-active {
  scrollbar-width: none;
}

html.custom-scrollbar-active,
body.custom-scrollbar-active {
  overscroll-behavior: contain;
}

body.custom-scrollbar-visible {
  padding-right: 16px;
}

.custom-scrollbar {
  position: fixed;
  top: 0;
  right: 0;
  width: 16px;
  height: 100vh;
  background: #121212;
  z-index: 9990;
  display: none;
  flex-direction: column;
  align-items: stretch;
  user-select: none;
}

.custom-scrollbar.is-visible {
  display: flex;
}

.custom-scrollbar-button {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background-color: #252525;
  border-width: 1px;
  border-style: solid;
  border-color: #3a3a3a;
  border-top-color: #2f2f2f;
  border-left-color: #2f2f2f;
  box-shadow: inset 1px 1px #3f3f3f, inset -1px -1px #0f0f0f;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 8px;
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 0;
}

.custom-scrollbar-button:focus-visible {
  outline: 2px solid #ff4500;
  outline-offset: -2px;
}

.custom-scrollbar-button:active {
  border: 1px solid #888;
  box-shadow: none;
  background-position: 3.2px 3.2px;
}

.custom-scrollbar-button.up {
  background-image: url("data:image/svg+xml,%3Csvg  transform='rotate(270)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.86 6.86'%3E%3Cpath fill='%231d1d1b' d='M4.41 2.94v-.98h-.98V.98h-.98V0h-.98V6.86h.98v-.98h.98V4.9h.98v-.98h.98v-.98h-.98z'/%3E%3C/svg%3E");
}

.custom-scrollbar-button.down {
  background-image: url("data:image/svg+xml,%3Csvg  transform='rotate(90)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.86 6.86'%3E%3Cpath fill='%231d1d1b' d='M4.41 2.94v-.98h-.98V.98h-.98V0h-.98V6.86h.98v-.98h.98V4.9h.98v-.98h.98v-.98h-.98z'/%3E%3C/svg%3E");
}

.custom-scrollbar-track {
  flex: 1 1 auto;
  position: relative;
  background-color: #181818;
  background-image:
    linear-gradient(to right, rgba(90, 90, 90, 0.2), rgba(45, 45, 45, 0.1)),
    linear-gradient(to right, #0e0e0e 50%, #1f1f1f 50%),
    linear-gradient(to bottom, #0e0e0e 50%, #1f1f1f 50%);
  background-size: 3px 3px;
  background-blend-mode: normal, difference, normal;
  border-left: 1px solid #101010;
  border-right: 1px solid #101010;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.55);
  padding: 1px 0;
}

.custom-scrollbar-thumb {
  position: absolute;
  left: 1px;
  width: calc(100% - 2px);
  min-height: 30px;
  background-color: #2f2f2f;
  border-width: 1px;
  border-style: solid;
  border-color: #3a3a3a;
  border-top-color: #333333;
  border-left-color: #333333;
  box-shadow: inset 1px 1px #3f3f3f, inset -1px -1px #101010;
  cursor: grab;
  border-radius: 0;
}

.custom-scrollbar-thumb.is-dragging,
body.custom-scrollbar-dragging {
  cursor: grabbing;
}

.custom-scrollbar-thumb::after {
  content: '';
  position: absolute;
  inset: 4px 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
}


.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
}

@media (hover: hover) and (pointer: fine) {
  .container::-webkit-scrollbar,
  .box::-webkit-scrollbar {
    width: 5px;
    height: 5px;
  }

  .container::-webkit-scrollbar-track,
  .box::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    -webkit-border-radius: 10px;
    border-radius: 10px;
  }

  .container::-webkit-scrollbar-thumb,
  .box::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: rgba(47, 47, 47, 0.3);
    -webkit-box-shadow: none;
  }

  .container::-webkit-scrollbar-thumb:window-inactive,
  .box::-webkit-scrollbar-thumb:window-inactive {
    background: rgba(47, 47, 47, 0.3);
  }
}

/* ===== Games gallery (grid-based) ===== */
.games-gallery {
  --gap: 12px;
  --card-bg: #141414;
  --card-border: #2a2a2a;
  --card-hover: #1b1b1b;
  --title-color: #ff4500;
  --shadow: 0 1px 2px rgba(0,0,0,.2), 0 6px 18px rgba(0,0,0,.25);

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
}

/* One-row mode: horizontally scrollable carousel */
.games-gallery.one-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(150px, 22vw, 220px);
  grid-template-columns: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}

.game-card:focus-visible {
  outline: 2px solid #ff4500;
  outline-offset: 2px;
}

.game-card:hover {
  transform: translateY(-2px);
  background: var(--card-hover);
  border-color: #ff4500;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}

.thumb-wrap {
  aspect-ratio: 16 / 9;
  background: #0f0f0f;
  display: grid;
  place-items: center;
}

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-meta {
  padding: 10px 10px 12px;
}

.game-title {
  font-family: Seraphim, TimesNewPixel, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1.35em;
  color: var(--title-color);
  text-align: center;
  letter-spacing: 0.5px;
}

/* Responsive column count adjustments */
@media (max-width: 1080px) {
  .games-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .games-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .games-gallery { grid-template-columns: 1fr; }
  .game-title { font-size: 1em; }
}

#gameSearch {
      width: min(90vw, 400px);
      max-width: 100%;
      padding: 0.5em;
      border-radius: 2em;
      border: 1.5px solid #bbb;
      font-size: 1.1em;
      background: #181818;
      color: #f5f5f5;
      box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
      font-family: Seraphim;
}

.discord {
    max-height: fit-content;
    margin-right: auto;
    margin-left: auto;
}

.discord-users{--dw-font:11px;--dw-font-small:10px;--dw-avatar:26px;--dw-status:12px;--dw-gap:0.4rem;--dw-pad-y:0.30rem;--dw-pad-x:0.45rem;max-width:240px;font-size:var(--dw-font);margin:0 0 0 auto;font-family:Seraphim,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#101010;border:2px solid #2a2a2a;border-radius:10px;box-shadow:0 3px 14px -4px rgba(0,0,0,.55);overflow:hidden}
.discord-users-header{display:flex;align-items:center;justify-content:space-between;padding:.4rem .5rem;background:#181818;font-weight:600;font-size:calc(var(--dw-font) - 1px);letter-spacing:.4px;border-bottom:1px solid #202020}
.discord-users-title{display:inline-flex;align-items:center;gap:.35rem}
.discord-users-count{font-size:var(--dw-font-small);color:#bbb}
.discord-users-body{display:flex;flex-direction:column;padding:.3rem .4rem;gap:.25rem;max-height:190px;overflow-y:auto}
.discord-user{display:flex;align-items:center;gap:var(--dw-gap);padding:var(--dw-pad-y) var(--dw-pad-x);background:linear-gradient(to bottom,rgba(255,255,255,0.035),rgba(255,255,255,0.01));border:1px solid rgba(255,255,255,0.05);border-radius:7px;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);transition:background .18s,border-color .18s}
.discord-user:hover{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.16)}
.discord-avatar-wrap{position:relative;flex:0 0 auto;width:var(--dw-avatar);height:var(--dw-avatar);display:grid;place-items:center}
.discord-avatar{width:calc(var(--dw-avatar) - 2px);height:calc(var(--dw-avatar) - 2px);object-fit:cover;display:block;border-radius:50%;background:#222}
.discord-status{position:absolute;right:-3px;bottom:-3px;width:var(--dw-status);height:var(--dw-status);border:2px solid #101010;border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.35)}
.discord-status.status-online{background:#3ba55d}
.discord-status.status-idle{background:#f1c40f}
.discord-status.status-dnd{background:#ed4245}
.discord-status.status-offline{background:#4f545c}
.discord-username{font-size:var(--dw-font-small);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:125px}
.discord-users-footer{padding:.3rem .45rem;background:#161616;border-top:1px solid #222;display:flex;justify-content:flex-end}
.discord-users-error{padding:.55rem .5rem;color:#ff6b6b;font-size:.7rem;}
#discord-join-link{font-size:0.9em}
@media (max-width:600px){.discord-users{margin:1rem .75rem 0 .75rem;max-width:240px}.discord-username{max-width:140px}}
/* Basic wrapper alignment */
#discord-widget-wrapper{display:flex;justify-content:flex-end}

/* Contact page layout: contact box left, widget right */
.contact-layout{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:12px;margin-top:8px}
.contact-layout .contactbox{flex:1 1 auto;min-width:0;background:#161616;border:1px solid #2a2a2a;border-radius:10px;padding:8px 10px;box-shadow:0 2px 8px -3px rgba(0,0,0,.55)}
.contactbox-title{margin:0 0 6px;font-family:Seraphim;font-size:1rem;color:#ff4500;text-align:left;border-bottom:1px solid #272727;padding-bottom:4px}
.contactbox-body{font-size:.8rem;line-height:1.35em}
.contact-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}
.contact-list li{background:rgba(255,255,255,0.04);padding:4px 6px;border:1px solid rgba(255,255,255,0.06);border-radius:6px}
.contact-list a{color:#ff7b00;text-decoration:underline}
.contact-list a:hover{color:#ff4500}

/* Ensure widget doesn’t stretch when space is narrow */
.contact-layout #discord-widget-wrapper{flex:0 0 auto;display:flex;justify-content:flex-end}
.contact-layout #discord-widget-wrapper .discord-users{max-width:240px}

@media (max-width:780px){
  .contact-layout{flex-direction:column-reverse;align-items:center;justify-content:flex-start}
  .contact-layout .contactbox{width:100%;max-width:600px}
  .contact-layout #discord-widget-wrapper{justify-content:center;width:100%}
  .contact-layout #discord-widget-wrapper .discord-users{margin:0 auto}
}

/* Mirrors page layout */
.mirror-layout{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:12px;margin-top:8px}
.mirror-layout .mirror-box{flex:1 1 auto;min-width:0;background:#161616;border:1px solid #2a2a2a;border-radius:10px;padding:8px 10px;box-shadow:0 2px 8px -3px rgba(0,0,0,.55);display:flex;flex-direction:column;height:30vh;max-height:30vh}
.mirror-box-title{margin:0 0 6px;font-family:Seraphim;font-size:1rem;color:#ff4500;text-align:left;border-bottom:1px solid #272727;padding-bottom:4px}
.mirror-box-body{font-size:.8rem;line-height:1.35em;flex:1 1 auto;overflow-y:auto;padding-right:4px}
.mirror-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}
.mirror-list li{background:rgba(255,255,255,0.04);padding:4px 6px;border:1px solid rgba(255,255,255,0.06);border-radius:6px;font-size:.95rem;line-height:1.4}
.mirror-list a{color:#ff7b00;text-decoration:underline}
.mirror-list a:hover{color:#ff4500}

/* Ensure widget alignment matches mirrors layout */
.mirror-layout #discord-widget-wrapper{flex:0 0 auto;display:flex;justify-content:flex-end}
.mirror-layout #discord-widget-wrapper .discord-users{max-width:240px}

@media (max-width:780px){
  .mirror-layout{flex-direction:column-reverse;align-items:center;justify-content:flex-start}
  .mirror-layout .mirror-box{width:100%;max-width:600px}
  .mirror-layout #discord-widget-wrapper{justify-content:center;width:100%}
  .mirror-layout #discord-widget-wrapper .discord-users{margin:0 auto}
}




.back{
  color:#fff !important;
  background:linear-gradient(135deg,#ff4500 80%,#ff7b00 100%);
  border:1px solid #ff4500;
  text-decoration:none;
  font-weight:600;
  font-size: 1rem;
  letter-spacing:.4px;
  padding:.25rem .55rem;
  border-radius:6px;
  box-shadow:0 2px 4px -1px rgba(0,0,0,.18),0 0 0 1px rgba(255,69,0,.12);
  transition:background .18s,border-color .18s,transform .18s,color .18s;
  text-shadow:0 1px 2px rgba(0,0,0,0.18);
  font-family:Seraphim;
}
.back:hover{
  background:linear-gradient(135deg,#ff7b00 80%,#ff4500 100%);
  border-color:#ff7b00;
  color:#fff;
}
.back:active{
  transform:translateY(1px);
  filter:brightness(0.95);
}

.gradient-button{
  color:#fff !important;
  background:linear-gradient(135deg,#ff4500 80%,#ff7b00 100%);
  border:1px solid #ff4500;
  text-decoration:none;
  font-weight:600;
  font-size: 0.7rem;
  letter-spacing:.4px;
  padding:.25rem .55rem;
  border-radius:6px;
  box-shadow:0 2px 4px -1px rgba(0,0,0,.18),0 0 0 1px rgba(255,69,0,.12);
  transition:background .18s,border-color .18s,transform .18s,color .18s;
  text-shadow:0 1px 2px rgba(0,0,0,0.18);
  font-family:Seraphim;
}
.gradient-button:hover{
  background:linear-gradient(135deg,#ff7b00 80%,#ff4500 100%);
  border-color:#ff7b00;
  color:#fff;
}
.gradient-button:active{
  transform:translateY(1px);
  filter:brightness(0.95);
}

.gradient-button.audio-control-button{
  font-size:0.6rem;
  padding:.18rem .4rem;
  min-width:2.5rem;
  text-transform:lowercase;
}

.gradient-button.audio-mute-button{
  min-width:1.8rem;
  padding:.18rem .25rem;
}

.audio-controls{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:.3rem;
  margin-top:5px;
}

.audio-controls .gradient-button.audio-control-button{
  flex:0 0 auto;
}

.audio-controls .audio-mute-button{
  font-size: 0.7em;
}

.audio-controls .volume-control{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.15rem;
  flex-basis:100%;
  justify-content:center;
  margin-top:.25rem;
}

body #boredring {
  padding: 0 !important;
  margin: 0.25rem auto 0;
  max-width: min(95%, 180px);
  width: 100%;
}

body #boredring table {
  font-size: 0.54em;
  border-width: 0.5px;
  margin: 0 auto;
  width: 100%;
  table-layout: fixed;
}

body #boredring table tr td {
  padding: 1.5px 2.5px;
}

body #boredring .webring-links {
  font-size: 0.5em;
  display: block;
  margin-top: 3px;
}

body #boredring .webring-display {
  font-size: 0.46em;
}

body #boredring .webring-icon {
  width: 11px;
  padding-top: 0;
}

  #volume-slider {
    width: 150px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 2px;
    outline: none;
  }

  /* chrome / safari */
  #volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #1a1a1a;
    border: 2px solid rgba(255, 68, 0, 0.6); /* outline */
    border-radius: 50%;
    cursor: pointer;
    margin-top: -5px;
  }

  #volume-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: linear-gradient(to right, #ff4500 var(--value, 50%), #ddd 0);
    border-radius: 2px;
  }

  :root {
    --value: 50%;
    --text-length: 1;
    --quip-min-size: 0.8em;
    --quip-max-size: 1em;
    --quip-scale-factor: 0.0035em;
  }

  /* firefox */
  #volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #1a1a1a;
    border: 2px solid rgba(255, 68, 0, 0.6); /* outline */
    border-radius: 50%;
    cursor: pointer;
  }

  #volume-slider::-moz-range-track {
    height: 4px;
    background: linear-gradient(to right, #ff4500 var(--value, 50%), #ddd var(--value, 50%));
    border-radius: 2px;
  }

  /* edge */
  #volume-slider::-ms-thumb {
    width: 14px;
    height: 14px;
    background: #1a1a1a;
    border: 2px solid rgba(255, 68, 0, 0.6); /* outline */
    border-radius: 50%;
    cursor: pointer;
  }

  #volume-slider::-ms-track {
    height: 4px;
    background: transparent;
    border-color: transparent;
    color: transparent;
  }

  #volume-slider::-ms-fill-lower {
    background: #ff4500;
    border-radius: 2px;
  }

  #volume-slider::-ms-fill-upper {
    background: #ddd;
    border-radius: 2px;
  }

  #updates-list {
    max-height: 10vh;
    overflow-y: auto;
    overflow-x: hidden;
  }
  #updates-list ul {
    list-style-position: inside;
    padding-left: 0;
    padding-top: 0;
    margin-top: 0;
    padding-left: 0;
    font-size: 0.8em;
    vertical-align: sub;
  }

  .quip {
    --quip-adjustment: calc(var(--text-length) * var(--quip-scale-factor));
    font-size: clamp(
      var(--quip-min-size),
      calc(var(--quip-max-size) - var(--quip-adjustment)),
      var(--quip-max-size)
    );
    height: 7vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    grid-template-rows: 1fr;
    align-items: center;
  }

  .quip p {
    margin: 0;
  }


  .header-inner {
  position: relative;
  display: inline-block;
}

#blurb {
  position: relative;	
	width: 40%;
	transform: rotate(15deg);
	animation: blurb 0.5s ease-in-out infinite;
	color: #FFFF00;
	font-size: 0.95em;
  position: absolute;
  top: 25%;
  right: -42%;
}

/* Slightly reduce button padding on very small screens so nav fits better */
@media (max-width: 420px) {
  #navigation li a {
    padding: 4px 8px;
    font-size: 0.95em;
  }
  #blurb {
    font-size: 0.7em;
    top: 60%;
    right: -7%;
    transform: rotate(10deg);
    animation: blurbSmall 0.5s ease-in-out infinite;
  }
}

 @keyframes blurb {
 0% {
 transform: scale(1) rotate(15deg);
}
 50% {
 transform: scale(1.05) rotate(15deg);
}
 100% {
 transform: scale(1) rotate(15deg);
}
}
 @keyframes blurbSmall {
 0% {
 transform: scale(1) rotate(10deg);
}
 50% {
 transform: scale(1.05) rotate(10deg);
}
 100% {
 transform: scale(1) rotate(10deg);
}
}

