/* Base */
body{
  font-family:Verdana;
  font-size:10px;
  background:url(../images/bg.png);
  height:100%;
  margin:0;
}
@font-face{ font-family:Volter; src:url(../fonts/Volter.ttf); }
@font-face{ font-family:"Volter Bold"; src:url(../fonts/VolterBold.otf); }
@font-face{ font-family:Madness; src:url(../fonts/joystix.ttf); }

/* Layout shell */
.cont{ width:100%; height:100%; overflow:hidden; margin:0 auto; }

.header{
  background:url(../images/header.png);
  width:1180px;
  height:88px;
  margin:0 auto;
  position:relative;
  z-index:1;
}

/* NAV — ensure the image path is correct: sources/images/nav_red_extended.png */
.nav{
  background:url(../images/nav_red_extended.png) no-repeat 0 0;
  width:1180px;
  height:44px;           /* matches image height */
  margin:0 auto;
  display:flex;          /* center items vertically without extra padding */
  align-items:center;
  gap:0;
  position:relative;
  z-index:1;
}
.nav a{
  background:url(../images/others/nav_space.png) no-repeat right center;
  padding:0 20px;
  font-family:Verdana;
  font-size:10px;
  font-weight:bold;
  color:#FFFFFF;
  text-shadow:#2c6873 0 1px;
  text-decoration:none;
  line-height:1;
}
.nav a:hover{ color:#e8f0f1; }

/* White content container */
.stage{
  width:1180px;
  margin:8px auto 0 auto;
  background:url(../images/cont.png) repeat-y center top;
  background-size:1180px auto;
  overflow:hidden;
  padding:12px 0 20px;
  position:relative;
  z-index:2;
}

/* Columns */
.left{ width:279px; float:left; margin-left:15px; position:relative; z-index:2; }
.right{ width:592px; float:left; margin-left:2px; position:relative; z-index:2; }
.right2{ width:279px; float:left; margin-left:2px; position:relative; z-index:2; }

/* Main pieces */
.admin_says{
  background:url(../images/others/admin_says.png);
  width:572px; height:21px; margin:auto; margin-bottom:10px;
  font-family:Volter; font-size:9px; color:#7e7e7e; text-shadow:#f2f2f2 0 1px;
  padding:13px 10px 0 10px;
}
.footer{
  background:url(../images/footer.png);
  width:592px; height:25px; cursor:pointer; font-family:Volter; font-size:9px;
  color:#727272; text-align:center; padding-top:15px; text-shadow:#e1e1e1 0 1px;
}

/* Boxes */
#top_small{ background:url(../images/boxes/top_small.png); width:272px; height:23px; cursor:pointer; padding:12px 0 0 7px; }
#middle_small,
#middle_small_2,#middle_small_3,#middle_small_4,#middle_small_5,#middle_small_6,#middle_small_7{
  background:url(../images/boxes/middle_small.png); width:275px; height:auto; padding-left:2px; padding-right:2px;
}
#bottom_small{ background:url(../images/boxes/bottom_small.png); width:279px; height:6px; margin-bottom:3px; }

#top_large{ background:url(../images/boxes/top_large.png); width:585px; height:23px; cursor:pointer; padding:12px 0 0 7px; }
#middle_large,#middle_large_2{ background:url(../images/boxes/middle_large.png); width:588px; height:auto; padding-left:2px; padding-right:2px; }
#bottom_large{ background:url(../images/boxes/bottom_large.png); width:592px; height:6px; margin-bottom:3px; }

#top_small a{
  background:url(../images/others/box_down.png); padding:5px 10px; font-family:Volter; font-size:9px; color:#FFFFFF;
  border-radius:2px; text-shadow:#2f707c 0 1px; text-decoration:none;
}
#top_large a{
  background:url(../images/others/box_down.png); padding:5px 10px; font-family:Volter; font-size:9px; color:#FFFFFF;
  border-radius:2px; text-shadow:#606060 0 1px; text-decoration:none;
}
.link{
  background:#c8e5ea; width:98%; height:17px; margin:auto; font-family:Verdana; font-size:10px;
  color:#608f98; text-shadow:#e9f3f5 0 1px; margin-top:1px; padding:3px 0 0 5px; text-decoration:none;
}
.link:hover{ background:#e8e8e8; color:#909090; }
.input{
  background:url(../images/others/input.png); width:154px; height:35px; margin:auto; border:none; margin-top:2px; margin-left:1px;
  font-family:Volter; font-size:9px; color:#7e7e7e; text-shadow:#f2f2f2 0 1px; padding:8px;
}
.button{
  background:url(../images/others/button.png); width:115px; height:35px; font-family:Volter; font-size:9px; color:#688264;
  text-shadow:#d2f1cd 0 1px; border:none; float:right; margin-top:-35px; margin-right:2px;
}
/* One-line marquee container */
.dj-marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  line-height: 1;           /* keeps it tight */
}

/* The moving strip; we animate this leftward */
.dj-marquee-track {
  display: inline-flex;
  gap: 2rem;                /* space between duplicated blocks */
  width: max-content;
  animation: dj-marquee var(--marquee-duration, 20s) linear infinite;
}

/* A single “copy” of the content */
.dj-marquee-block {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

/* Avatar shown only in its top quarter */
.dj-avatar {
  height: 40px;             /* adjust to taste */
  width: auto;
  vertical-align: middle;
  /* Crop away the bottom 75%, leaving only the top 25% visible */
  clip-path: inset(0 0 40% 0);
}

/* Optional text styling */
.dj-label { font-weight: 700; }
.dj-message { font-weight: 500; }
.dj-spacer { opacity: .6; }

@keyframes dj-marquee {
  from { transform: translateX(100%); }  /* start off-screen right */
  to   { transform: translateX(-50%); }  /* end after one full copy scrolled */
}
.dj-marquee-track {
  display: inline-flex;
  gap: 2rem;
  width: max-content;
  animation: dj-marquee var(--marquee-duration, 20s) linear infinite;
  will-change: transform;
}
/* === Rare Values: Compact Vertical List === */

/* Container for all rare cards */
.cards-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 500px;        /* set a height limit so it scrolls */
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;     /* nice thin scrollbar (Firefox) */
}

/* scrollbar styling (WebKit/Blink browsers like Chrome, Edge, Safari) */
.cards-container::-webkit-scrollbar {
  width: 6px;
}
.cards-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}
.cards-container::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 6px;
}
.cards-container::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.rare-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: background 0.2s ease;
}
.rare-card:hover {
  background: #f9f9f9;
}

/* Rare name */
.rare-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Value badges stacked under the name */
.rare-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  margin-top: 2px;
}
.hc-value, .rd-value {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f5f7f9;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
}
.hc-value img,
.rd-value img {
  width: 14px;
  height: 14px;
}

/* Quantity input to the right */
.item-quantity {
  width: 50px;
  padding: 4px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
}
/* Random Rare (sidebar) */
#middle_small_random .rr-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
}

#middle_small_random .rr-img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

#middle_small_random .rr-info {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 4px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

#middle_small_random .rr-name {
  grid-column: 1 / span 2;
  font-family: Volter, Verdana, sans-serif;
  font-size: 9px;
  color: #7e7e7e;
  text-shadow: #f2f2f2 0 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#middle_small_random .rr-prices {
  display: inline-flex;
  gap: 6px;
}

#middle_small_random .rr-badge {
  font-family: Volter, Verdana, sans-serif;
  font-size: 9px;
  color: #333;
  background: #f5f7f9;
  border-radius: 999px;
  padding: 2px 6px;
  white-space: nowrap;
}

#middle_small_random .rr-btn {
  justify-self: end;
  font-family: Volter, Verdana, sans-serif;
  font-size: 9px;
  color: #ffffff;
  background-color: #3a737b;
  border: 1px solid #1c4c52;
  border-radius: 3px;
  padding: 4px 6px;
  cursor: pointer;
}
#middle_small_random .rr-btn:hover {
  background-color: #2d5c63;
}
/* Travel News (sidebar, compact) */
#middle_small_travel .tnw-body {
  padding: 6px;
  font-family: Volter, Verdana, sans-serif;
  font-size: 9px;
  color: #7e7e7e;
  text-shadow: #f2f2f2 0 1px;
}

#middle_small_travel .tnw-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#middle_small_travel .tnw-item {
  border-radius: 6px;
  padding: 6px 8px;
  margin: 0 0 6px 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

#middle_small_travel .tnw-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 6px;
}

#middle_small_travel .tnw-pin { opacity: 0.85; }
#middle_small_travel .tnw-loc {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333;
  font-weight: 700;
}
#middle_small_travel .tnw-delay {
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f5f7f9;
  color: #333;
}

#middle_small_travel .tnw-sub {
  margin-top: 4px;
  color: #555;
}

/* Severity colors */
#middle_small_travel .tnw-item.tnw-green { background: #eaf7ea; }
#middle_small_travel .tnw-item.tnw-yellow { background: #fff9d6; }
#middle_small_travel .tnw-item.tnw-red { background: #fde8ea; }
#middle_small_travel .tnw-item.tnw-flashing {
  background: #ffe8b3;
  animation: tnwflash 1s infinite alternate;
}
@keyframes tnwflash {
  0%   { background-color: #ffe8b3; }
  50%  { background-color: #ffd580; }
  100% { background-color: #ffe8b3; }
}

/* Tiny legend */
#middle_small_travel .tnw-legend {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
#middle_small_travel .tnw-badge {
  padding: 2px 6px;
  border-radius: 999px;
  background: #f5f7f9;
  color: #333;
}
#middle_small_travel .tnw-badge.tnw-green { background: #eaf7ea; }
#middle_small_travel .tnw-badge.tnw-yellow { background: #fff9d6; }
#middle_small_travel .tnw-badge.tnw-red { background: #fde8ea; }
#middle_small_travel .tnw-badge.tnw-flash { background: #ffe8b3; }

/* Refresh button styled to match site */
#middle_small_travel .tnw-btn {
  display: block;
  margin: 6px auto 0;
  font-family: Volter, Verdana, sans-serif;
  font-size: 9px;
  color: #fff;
  background: linear-gradient(180deg, #3a737b 0%, #2d5c63 100%);
  border: 1px solid #1c4c52;
  border-radius: 4px;
  padding: 5px 8px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 1px 2px rgba(0,0,0,0.15);
  transition: transform 0.08s ease, filter 0.2s ease;
}
#middle_small_travel .tnw-btn:hover { filter: brightness(1.05); }
#middle_small_travel .tnw-btn:active { transform: translateY(1px); }
/* Player count page */
.pc-wrap { padding: 8px; }
.pc-title { margin: 0 0 8px; font-size: 14px; color: #333; }
.pc-chart {
  width: 100%;
  height: 320px;    /* fixed height so Chart.js can render responsively */
  background: #fff; /* adapt to your theme */
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 8px;
}
.legend-note { font-size: 11px; color: #666; margin-top: 6px; }


/* Keep desktop layout on phones; only fix scroll/pinch */
@media (max-width: 1199px) {
  html, body { height:auto; overflow:auto; }

  /* Your containers currently block scrolling with overflow/height */
  .cont  { height:auto; overflow:visible; }
  .stage { overflow:visible; }

  /* If any inner widget sets overflow:hidden and traps scroll, relax it */
  .cards-container { overflow-y:auto; } /* keep this one scrollable by itself */
}
