* {
  box-sizing: border-box;
}

/* ── Intensive-action button loading spinner ───────────────────────────── */
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
.btn-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 2px;
}

html {
  height: 100%;
}

/* Style the body */
body {
  font-family: Arial, sans-serif;
  color: #e8eaed;
  margin: 0;
  background-color: #07111d;
  height:100%;
  /*background-image: url("../images/dropshipbackground.jpg");  The image used */
  background-position: top; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  background-attachment: fixed;
  background-blend-mode: multiply;
  /*background-image: url("../images/og.jpg");*/
}

form {
	margin: 0px;
}

#loading {
  position: fixed;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  text-align: center;
  opacity: 0.95;
  background-color: #000;
  z-index: 99;
}

#loading-image {
  position: relative;
  top: 35%;
  margin: 0 auto;
  z-index: 100;
}

.container {
  height: 100%;
  /*max-width: 1866.65px;*/
  max-width: 2000px;
  margin: 0 auto;
  min-height: 100%;
}

/* Header/logo Title */
.header {
  padding: 60px;
  text-align: center;
  background: #1abc9c;
  color: white;
}

a {
  color: #00c8a0;
  text-decoration: none;
  text-align: center;
}
a:hover { color: #00a882; }

/* Style the top navigation bar */
.navbar {
  display: flex;
  background-color: #040c16;
  font-family: Arial, sans-serif;
  position: relative;
  z-index: 200;
  /*-webkit-filter: drop-shadow(5px 5px 5px #202225);
  filter: drop-shadow(5px 5px 5px #202225);*/
}

/* Style the navigation bar links */
.navbar a {
  color: white;
  padding: 14px 20px;
  text-decoration: none;
  text-align: center;
}

.navbar input {
  background-color: #0d1e2e;
  color: white;
  padding: 14px 20px;
  text-decoration: none;
  text-align: center;
}

.navbar span {
  color: white;
  padding: 14px 20px;
  text-decoration: none;
  text-align: center;
}

.navbar img {
  width: 40px;
  height: 40px;
  margin: 5px;
  text-align: center;
}

.rounded-full {
  border-radius: 9999px;
}

.role .rounded-full{
  outline: 2px solid black;
  outline-offset: -1px;
}

.rounded {
  border-radius: 25px;
}

.navbar-first {
  margin-left: auto;
}

/* ── Nav Dropdowns ── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  color: white;
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  user-select: none;
}
.nav-dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid rgba(255,255,255,0.5);
  border-bottom: 1.5px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  margin-bottom: 3px;
  transition: border-color 0.2s;
}
.nav-dropdown-trigger:hover {
  background-color: rgba(0,200,160,0.15);
  color: #00c8a0;
}
.nav-dropdown-trigger:hover::after {
  border-color: #00c8a0;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #040c16;
  border: 1px solid rgba(0,200,160,0.18);
  border-top: none;
  min-width: 160px;
  z-index: 100;
  flex-direction: column;
}
.nav-dropdown-menu a {
  padding: 12px 20px;
  text-align: left;
  white-space: nowrap;
  display: block;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,200,160,0.08);
}
.nav-dropdown-menu a:last-child {
  border-bottom: none;
}
.nav-dropdown-menu a:hover {
  background-color: rgba(0,200,160,0.15);
  color: #00c8a0;
}
@media screen and (min-width: 701px) {
  .nav-dropdown:hover > .nav-dropdown-menu { display: flex; }
}
@media screen and (max-width: 700px) {
  .nav-dropdown { width: 100%; }
  .nav-dropdown-trigger {
    width: 100%;
    border-bottom: 1px solid rgba(0,200,160,0.12);
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
  }
  .nav-dropdown-trigger:hover {
    background-color: rgba(0,200,160,0.15);
    color: #00c8a0;
  }
  .nav-dropdown-menu {
    position: static;
    border: none;
    background-color: #030a12;
  }
  .nav-dropdown-menu.open { display: flex; }
  .nav-dropdown-menu a {
    padding-left: 36px;
    text-align: left;
    border-bottom: 1px solid rgba(0,200,160,0.08);
  }
  .nav-dropdown-menu a:last-child { border-bottom: none; }
}

/* Change color on hover */
.navbar a:hover {
  background-color: rgba(0,200,160,0.15);
  color: #00c8a0;
}

/* Column container */
.row {  
  display: flex;
  flex-wrap: wrap;
}

/* Create two unequal columns that sits next to each other */
/* Sidebar/left column */
.side {
  flex: 30%;
  /*background-color: #32353B;*/
  /* Side background commented out
  background-color: #2F3136;*/
  padding: 20px;
  max-width: 500px;
}

/* Main column */
.main {
  flex: 70%;
  /*background-color: #36393F;
	background-color: #32353B;*/
  
	/* Main background commented out
	background-color: #2F3136;*/

/*  background-color: black; */
  padding: 20px;
  text-align: center;
}

/* Main column */
.main-diamond {
  flex: 67%;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
}

.main-diamond .nfts {
	min-height: 0px;
}

#filtered-content .nfts {
	min-height: 0px;
}

.wallet-connect select {
	width: 148px;
    border-radius: 8px;
    height: 30px;
    font-weight: bold;
    background-color: #0d1e2e;
    color: #D6DDDE;
    text-align: center;
    font-size: 20px;
	margin-left: 5px;
	border: 1px solid rgba(0,200,160,0.18);
}

.select-project select {
	width: 170px;
}

#player-stats {
	background-color: #0a1929;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid rgba(0,200,160,0.18);
	/*-webkit-filter: drop-shadow(5px 5px 5px #202225);
    filter: drop-shadow(5px 5px 5px #202225);*/
}

/* Soldiers column */
.soldiers {
  flex: 67%;
  background-color: #2F3136;
/*  background-color: black; */
  padding: 20px;
  text-align: center;
  max-width: 67%;
}

.soldiers h2, .soldiers p {
	text-align: left;
}

#super-soldier {
	display: none;
}

#squad-panel {
	min-height: 475px;
}

#barracks-panel {
	clear: both;
	border-top: 1px solid rgba(0,200,160,0.12);
}

#filtered-content {
	position: relative;
	top: -40px;
}

#filter-nfts {
	color: #e8eaed;
	text-align: right;
	position: relative;
    top: -35px;
	font-size: 20px;
	font-family: Arial, sans-serif;
}

#filterNFTs {
    width: 190px;
    border-radius: 8px;
    height: 30px;
    font-weight: bold;
    background-color: #0d1e2e;
    color: #D6DDDE;
    text-align: left;
    font-size: 20px;
    border: 1px solid rgba(0,200,160,0.18);
	font-family: Arial, sans-serif;
}

#filterRealms {
    width: 190px;
    border-radius: 8px;
    height: 30px;
    font-weight: bold;
    background-color: #0d1e2e;
    color: #D6DDDE;
    text-align: left;
    font-size: 20px;
    border: 1px solid rgba(0,200,160,0.18);
	font-family: Arial, sans-serif;
}

#filterLeaderboard {
    width: 190px;
    border-radius: 8px;
    height: 30px;
    font-weight: bold;
    background-color: #0d1e2e;
    color: #D6DDDE;
    text-align: left;
    font-size: 20px;
    border: 1px solid rgba(0,200,160,0.18);
	font-family: Arial, sans-serif;
}

.dropdown{
    width: 300px !important;
    border-radius: 8px;
    height: 30px;
    font-weight: bold;
    background-color: #0d1e2e;
    color: #D6DDDE;
    text-align: left;
    font-size: 20px;
    border: 1px solid rgba(0,200,160,0.18);
	font-family: Arial, sans-serif;
}

#armory-icons {
	padding: 0px;
	text-align: right;
	border-bottom: 1px solid #43464D;
	position: relative;
	top: 15px;
}

.armory-icon {
	background-color: #0d1e2e;
	cursor: pointer !important;
	padding: 15px;
	border-top: 1px solid rgba(0,200,160,0.18);
	border-left: 1px solid rgba(0,200,160,0.18);
	border-right: 1px solid rgba(0,200,160,0.18);
	position: relative;
	top: 5px;
	width: auto;
	height: 75px;
	margin-bottom: 0px;
	/*
	-webkit-filter: drop-shadow(5px -15px 10px #202225);
    filter: drop-shadow(5px -15px 10px #202225);*/
}

.icon-disabled {
	opacity: 50%;
	margin: 1px;
}

.col1of3 {
  flex: 33%;
  /*background-color: black;*/
  padding: 20px;
  min-width: 33%;
}

.col1of2 {
  flex: 50%;
  background-color: #080f18;
  padding: 20px;
}

#row4 .main {
	text-align: left;
}

/* Realms page: widen locations column, narrow realm image column */
#row0 .side {
	flex: 40%;
	max-width: none;
}
#row0 .main {
	flex: 60%;
}
/*
#transactions-pane {
	max-height: 750px;
	overflow: scroll;
}*/

.content {
	border-radius: 10px;
}

#transactions {
	max-height: 500px;
	overflow: scroll;
	width: 100%;
	border-radius: 10px;
	overflow: hidden;
	border-bottom: 1px;
	border-top: 1px;
	border-left: 1px;
	border-right: 1px;
	border-style: solid;
	border-color: rgba(0,200,160,0.12) !important;
	font-family: Arial, sans-serif;
	background-color: #0a1929;
}

#transactions th, #transactions td {
	color: #e8eaed;
	padding: 10px;
	border-bottom: 1px;
	border-top: 1px;
	border-left: 1px;
	border-right: 1px;
	/*border-style: solid;*/
	border-color: rgba(0,200,160,0.10) !important;
}

#transactions th {
	background-color: #050d16;
	color: #5a7888;
	font-size: 0.65rem;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

#transactions img {
	min-width: 0%;
    margin: 0 auto;
    padding: 0px;
}

#transactions .icon {
    width: 25px;
    padding-right: 0px;
	/*-webkit-filter: drop-shadow(5px 5px 5px #202225);
    filter: drop-shadow(5px 5px 5px #202225);*/
}

.credit {
	/*background-color: #502466;*/
}

.debit {
	background-color: rgba(0,200,160,0.06);
}

.winner {
	background-color: #502466;
}

/*
.main img {
  min-width:20%;
  margin: 0 auto;
  padding: 20px;
  max-height: 650px;
}*/

.main h3 {
	color: #e8eaed;
}

#results {
    background-color: #080f18;
    border-radius: 25px;
	text-align: center;
	width: 100%;
	min-height: 898px;
	max-height: 898px;
	color: #e8eaed;
	margin: 0 auto;
	overflow: hidden;

	/*background-image: url("../tvstatic.jpg");*/
	background-position: center; /* Center the image */
	background-repeat: no-repeat; /* Do not repeat the image */
	background-size: contain; /* Resize the background image to cover the entire container */

	border: 5px solid rgba(0,200,160,0.15);

	-webkit-filter: drop-shadow(5px 5px 5px #020a12);
    filter: drop-shadow(5px 5px 5px #020a12);
}

#results img {
	max-height: 650px;
	max-width:100%;
	width: auto;
}

#resultsText h3 {
	color: white;
}

.leaderboard .icon {
	padding: 0px;
	width: 20px;
	position: relative;
    top: 4px;
    margin-right: 2px;
	/*-webkit-filter: drop-shadow(5px 5px 5px #202225);
    filter: drop-shadow(5px 5px 5px #202225);*/
}

.leaderboard li {
	font-size: 20px;
	font-family: Arial, sans-serif;
}

.highlight {
	background-color: rgba(0,200,160,0.08);
}

#itemForm table{
	margin: 0 auto;
	text-align: left;
}

#itemForm table td{
	padding: 10px;
	color: white;
}

.role {
	font-size: 1.3rem;
	display: flex;
    flex-direction: row;
    align-items: center;
}

.inventory-item{
	background-color: #0f2236;
    border-radius: 0.5rem;
    padding: 5px;
	border: 1px solid rgba(0,200,160,0.15);
}

.inventory-item tr {

}

.inventory-item td {

}

.item-description {
	font-size: 13px;
}

.item {
	display: flex;
    flex-direction: row;
    align-items: center;
	-webkit-filter: drop-shadow(5px 5px 5px #202225);
    filter: drop-shadow(5px 5px 5px #202225);
}

.item-stats{
	font-size: 13px;
}

.icon {
	width: 40px;
/*	padding-right: 20px;*/
	/*-webkit-filter: drop-shadow(5px 5px 5px #202225);
    filter: drop-shadow(5px 5px 5px #202225);*/
	margin-right: 15px;
}

.avatar {
	width: 20px;
    padding-right: 0px;
    border-radius: 1rem;
}

.pinch {
	padding: 0px;
	height: 20px;
	width: auto;
}

input {
	background-color: #0d1e2e;
    color: #D6DDDE;
}

#carbon {
	background-color: #0d1e2e;
    color: #D6DDDE;
}

.button {
  background-color: #00c8a0;
  border: none;
  color: #07111d;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 2rem;
  box-shadow: 0 6px #007a62;
  width: 100%;
  font-family: Arial, sans-serif;
}

.button:hover {
	background-color: #00a882;
}

.button:active {
  background-color: #00a882;
  box-shadow: 0 3px #007a62;
  transform: translateY(3px);
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a2a3a;
    color: rgba(255,255,255,0.85);
    font-size: 0.75rem;
    font-weight: normal;
    line-height: 1.4;
    white-space: normal;
    width: 220px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0,200,160,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 1200;
    text-align: left;
}
[data-tooltip]:hover::after {
    opacity: 1;
}

.small-button {
  background-color: #00c8a0;
  border: none;
  color: #07111d;
  font-weight: bold;
  padding: 3px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  cursor:pointer;
  border-radius: 20px;
  font-weight: bold;
  box-shadow: 0 4px #020a12;
  font-family: Arial, sans-serif;
}

.small-button:hover {
	background-color: #00a882;
}

.small-button-danger {
  background-color: #c0392b;
  box-shadow: 0 4px #5a0a05;
  color: #fff;
}
.small-button-danger:hover {
  background-color: #a93226;
}
.small-button-danger:active {
  background-color: #a93226;
  box-shadow: 0 2px #5a0a05;
}

.small-button:active {
  background-color: #00a882;
  box-shadow: 0 2px #003828;
  transform: translateY(2px);
}

.raid-button {
  background-color: #00c8a0;
  border: none;
  color: #07111d;
  padding: 3px 10px;
  border-radius: 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  cursor:pointer;
  font-weight: bold;
  box-shadow: 0 4px #020a12;
  font-family: Arial, sans-serif;
}

.raid-button:hover {
	background-color: #00a882;
}

.raid-button:active {
  background-color: #00a882;
  box-shadow: 0 2px #003828;
  transform: translateY(2px);
}

.activated {
	background-color: #555 !important;
	
}
/*
.td3 {
	text-align: right;
}*/

h1 {
	color: #e8eaed;
	font-family: Arial, sans-serif;
	text-align: left;
}

h2 {
	font-weight: 300;
	font-size: 1.6rem;
	color: #00c8a0;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(0,200,160,0.20);
	font-family: Arial, sans-serif;
	text-align: left;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

h3 {
	font-weight: 300;
	font-size: 1.2rem;
	font-family: Arial, sans-serif;
	color: #00a882;
	text-align: left;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

p {
	color: #e8eaed;
}

ul {
	padding: 0px;
	padding-bottom: 10px;
}

li {
	color: #e8eaed;
	padding: 10px;
	border-bottom: 1px;
	border-top: 0px;
	border-left: 0px;
	border-right: 0px;
	border-style: solid;
	border-color: rgba(0,200,160,0.12) !important;
	list-style: none;
}

.no-border-style {
	border-style: none;
}

.greyed-out {
	opacity: 0.75;
}
/*
li form {
	float: right;
	margin-left: 15px;
}*/

.w3-border {
    border: 1px solid rgba(0,200,160,0.12) !important;
	width: 100%;
	background-color: #080f18;
}

.w3-grey {
    color: #000 !important;
    /*background-color: #444444 !important;*/
	background-color: #888 !important;
    height: 5px;
	border-right: 0px solid #D6DDDE;
    background-image: none !important;
}

.w3-border-rewards {
    border: 1px solid rgba(0,200,160,0.12);
    margin: 0px;
    margin-top: 0px;
    width: 100%;
    background-color: #080f18;
    margin-bottom: 10px;
}

.w3-grey-rewards {
    background-color: #00c8a0 !important;
    height: 24px !important;
}

.achievements{
	font-family: Arial, sans-serif;
}

.achievement{
	border-radius: 1.5rem;
	margin: 10px;
	border: 1px solid rgba(0,200,160,0.18);
	max-width: 660px;
	width: 100%;
	text-align: left;
	float: left;
	color: white;
	height: 100px;
	background-color: #0d1e2e;
	-webkit-filter: drop-shadow(5px 5px 5px #020a12);
    filter: drop-shadow(5px 5px 5px #020a12);
}

.achievement .icon {
	float: left;
	width: 75px;
	padding-top: 20px;
	padding-left: 20px;
	position:relative;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    top:50%;
	-webkit-filter: drop-shadow(5px 5px 5px #202225);
    filter: drop-shadow(5px 5px 5px #202225);
}

.achievement .text {
	position:relative;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    top:50%;
	font-size: 1.5rem;
}

.achievement .title {
	font-weight: bold;
}

.locked {
	color: #a3a3a3;
}

.locked .icon {
	opacity: 50%;
	-webkit-filter: drop-shadow(5px 5px 5px #202225);
    filter: drop-shadow(5px 5px 5px #202225);
}

.unlocked {
	color: #e5e5e5;
}

.achievement .status {
	float: right;
	padding-right: 20px;
}

.projects-container {
	width: 100%;
	max-width: 1500px;
	margin: 0 auto;
	padding: 25px;
	background-color: #080f18;
}

.project-row {
	width: 100%;
}

.teams-row {
	width: 100%;
}

.projects {
	background-color: #080f18;
}

.teams {
	background-color: #080f18;
}

.project {
	float: left;
	width: 33.33%;
	padding: 10px;
}

.member {
	float: left;
	width: 25%;
	padding: 10px;
}

.membership {
	float: left;
	width: 75%;
	padding: 10px;
}

.member img{
	width: 100%;
}

.projects-container h3{
	color: #e8eaed;
}

.project img{
	width: 100%;
}

.missions-filters {
    position: relative;
    top: -10px;
	clear: both;
	overflow: hidden;
}

.missions-filter {
    float: left;
    background-color: #0a1929;
    border: 1px solid rgba(0,200,160,0.15);
    padding: 10px;
    margin: 5px;
    color: #bbb;
	cursor: pointer;
	font-size: 1rem;
}

.missions-filter img{
	width: 40px;
	height: 40px;
}

.missions-filter.eligible {
    border-color: rgba(0,200,160,0.45);
}

.missions-filter:hover {
	border: 1px solid #00c8a0;
}

.missions-filter.eligible:hover {
	border: 1px solid #00c8a0;
}

.missions-filter[data-tooltip]::after {
    width: auto;
    white-space: nowrap;
    text-align: center;
}

.nfts {
	color: #e8eaed;
	clear: both;
	min-height: 1000px;
}

.nfts label {
	color: #e8eaed;
	font-weight: bold;
}

.nft {
	/*background-color: #2F3136;*/
	border-radius: 2.5rem;
	float: left;
	width: 25%;
	font-size: 12px;
}

.diamond {
	/*background-color: #2F3136;*/
	border-radius: 2.5rem;
	display: inline-block;
	vertical-align: top;
	width: 19%;
	font-size: 12px;
}

.store-item {
	width: 33%;
}

.offering {
	width: 100%;
	text-align: center;
}

.nft-data{
	background-color: #0a1929;
	border: 1px solid rgba(0,200,160,0.15);
	padding: 10px;
	margin: 10px;
	border-radius: 10px;
	/*-webkit-filter: drop-shadow(5px 5px 5px #020a12);
    filter: drop-shadow(5px 5px 5px #020a12);*/
	min-height: 320px;
	text-align: right;
}

.missions .nft-data {
	min-height: 215px;
	text-align: right;
}

.mission-data:hover{
	border: 1px solid #00c8a0;
	cursor: pointer;
}

.disabled {
	opacity: 0.5;
	background-color: #0a1929 !important;
}

.disabled:hover{
	border: 1px solid rgba(0,200,160,0.15) !important;
	cursor: no-drop !important;
}

.inventory .role {
	color: #bbb;
}

.inventory .button {
	margin-top: 10px;
}

.mission-image {
	border: 1px solid rgba(0,200,160,0.15);
}

.missions .icon {
	border: 1px solid rgba(0,200,160,0.15);
	width: 50px !important;
}

.consumable {
	border: 0px !important;
	margin-right: 10px !important;
}

.inventory .nft-image {
    min-height: 45px;
	max-height: 45px;
	overflow-y: clip;
}

.highlight {
	border: 1px solid white;
}

.success {
	background-color: #37004f !important;
}

.success-bar {
	border: 0.45em solid #37004f !important;
}

.failure {
	background-color: #510936 !important;
}

.failure-bar {
	border: 0.45em solid #510936 !important;
}

.missions-icon {
	width: 4.5em;
	margin: 20px !important;
	display: block;
	opacity: 0.25;
}

.nft-level{
	color: #bbb;
}

.diamond-skull-data .nft-name {
	text-align: center;
}

.diamond-skull-data .nft-image {
	float: none;
}

.diamond-skull-data table{
	margin: 0 auto;
}

.diamond-skull-data{
	background-color: #0a1929;
	border: 1px solid rgba(0,200,160,0.15);
	padding: 10px;
	margin: 10px;
	border-radius: 10px;
	/*-webkit-filter: drop-shadow(5px 5px 5px #020a12);
    filter: drop-shadow(5px 5px 5px #020a12);*/
	min-height: 500px;
}

.diamond-skull-data table{
	color: #e8eaed;
	font-size: 12px;
}

.diamond-skull-data td{
	height: 20px;
}

.diamond-data{
	background-color: #0a1929;
	border: 1px solid rgba(0,200,160,0.15);
	padding: 10px;
	margin: 10px;
	border-radius: 10px;
	/*-webkit-filter: drop-shadow(5px 5px 5px #020a12);
    filter: drop-shadow(5px 5px 5px #020a12);*/
	min-height: 150px;
}

.diamond-data .nft-image {
	float: none;
}

.carbon-icon {
	opacity: 0.7;
	width: 40% !important;
}

.diamond-container {
	background-image: url('../images/diamond-background.png');
	background-repeat: no-repeat;
    background-size: contain;
	background-position: top;
}

.store-item .nft-data {
	min-height: 380px;
}

.nft-image{
	min-height: 170px;
	max-height: 170px;
	overflow-y: hidden;
	float: left;
	margin-right: 5px;
}

.diamond-data .nft-image img{
	min-height: 60px;
	max-height: 60px;
	overflow-y: hidden;
	display: block;
	margin: 0 auto;
}

.shorty-verse-name {
	font-size: 5px;
}

.deceased {
	opacity: 50%;
}

.nft span {
	display: block;
	padding:3px;
}

.nft .status {
	margin-bottom: 8px;
}

.nft img {
	border-radius: 0;
	max-width: 175px;
	max-height: 165px;
	width: inherit;
}

.nft .small-button {
    margin-top: 10px;
    margin-bottom: 5px;
}

.nft-name {
	font-size: 0.85rem;
	font-weight: bold;
	padding-top: 20px;
	font-family: Arial, sans-serif;
	text-align: left;
}

.nft-owner {
    height: 40px;
}

.leaderboard-nfts {
	width: 100%;
	max-height: 107px;
    overflow-y: hidden;
}

.leaderboard-nft img {
	width: 25%;
	float: left;
}

.empty-slot {
	opacity: 50%;
}

.current-address {
	padding: 20px;
}

#wagerForm label{
	color: #e8eaed;
	font-weight: bold;
}

#wager {
	width: 50px;
}

#wagers, #battles {
	position: relative;
	top: -60px;
}

#battles table{
	width: 100%;
	text-align: left;
}

#battles td, #battles th{
	width: 25%;
}

#battles h3 {
	text-align: left;
	padding-left: 10px;
}

.battle-credit {
	filter: hue-rotate(145deg);
}

.battle-debit {
	filter: hue-rotate(330deg);
}

.cancel {
    filter: hue-rotate(180deg);
}

.defend {
    filter: hue-rotate(90deg);
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #00c8a0;
}

input:focus + .slider {
  box-shadow: 0 0 1px #00c8a0;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.rounded {
  border-radius: 34px;
}

.slider.rounded:before {
  border-radius: 50%;
}

#results-image {
	width: 100%;
	height: 100%;
	min-height: 898px;
	max-height: 898px;
	background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* Ken Burns Effect */
.image-wrap {
  width: 100%;
  height: 50vw;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.image-wrap #results-image {
  width: 100%;
  animation: move 40s ease;
  /* Add infinite to loop. */
  
  -ms-animation: move 40s ease;
  -webkit-animation: move 40s ease;
  -0-animation: move 40s ease;
  -moz-animation: move 40s ease;
  position: absolute;
}

@-webkit-keyframes move {
  0% {
    -webkit-transform-origin: bottom left;
    -moz-transform-origin: bottom left;
    -ms-transform-origin: bottom left;
    -o-transform-origin: bottom left;
    transform-origin: bottom left;
    transform: scale(1.0);
    -ms-transform: scale(1.0);
    /* IE 9 */
    
    -webkit-transform: scale(1.0);
    /* Safari and Chrome */
    
    -o-transform: scale(1.0);
    /* Opera */
    
    -moz-transform: scale(1.0);
    /* Firefox */
  }
  100% {
    transform: scale(1.2);
    -ms-transform: scale(1.2);
    /* IE 9 */
    
    -webkit-transform: scale(1.2);
    /* Safari and Chrome */
    
    -o-transform: scale(1.2);
    /* Opera */
    
    -moz-transform: scale(1.2);
    /* Firefox */
  }
}
/* End Ken Burns Effect */

#back-to-top-button {
  display: none;
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #0a1929;
  color: white;
  cursor: pointer;
  padding-bottom: 0px;
  padding-top: 8px;
  padding-right: 10px;
  padding-left: 10px;
  border-radius: 4px;
  -webkit-filter: drop-shadow(5px 5px 5px #202225);
  filter: drop-shadow(5px 5px 5px #202225);
}

/* Reveal on Scroll */
section {
	opacity: 0;
	transition: 0.9s;
	transition-timing-function: cubic-bezier(0.5, 0, 0, 1);
}

section.active {
	opacity: 1;
	top: 0;
	scale: 1;
}

#revealPoint {
	position: fixed;
	height: 20px;
	width: 100%;
	left: 0;
	bottom: 150px;
	padding: 7px;
	margin: 0;
}

/* Footer */
.footer {
  padding: 20px;
  text-align: center;
}

.burger-menu{
	display: none;
}

.show-menu{
  display: flex !important;
  z-index: 3 !important;
}
.hide_menu{
	  display: none !important;
}

#quick-menu {
	display: none;
	position: fixed;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    background-color: #040c16;
    bottom: 0;
    padding: 5px;
	padding-top: 10px;
	left: 0px;
	z-index: 2;
}

#quick-menu img {
	max-width: 65px;
	padding: 20px;
	width: 18%;
}

#quick-menu img:hover {
  cursor: pointer;
}

.selected{
	border: 1px solid rgba(0,200,160,0.45);
    border-radius: 10px;
}

.month-row {
	background-color: #0a1622;
}

.realm label {
	font-weight: bold;
}

.realms li {
	text-align: left;
}

.location-wrapper {
	color: #e8eaed;
    font-size: 20px;
    font-weight: bold;
    width: 100%;
    height: 100%;
    padding: 15px;
	margin-top: 28px;
	border: 3px solid #fff;
	border-radius: 15px;
}

.transport {
    border-color: #00ffff;
}

.offense {
    border-color: #fa00ff;
}

.defense {
    border-color: #b500ff;
}

@media screen and (min-width: 1201px) {
	.missions .nft {
		width: 50%;
		float: left;
	}
	.missions .nft-data {
		min-height: 170px !important;
		background-color: #1d1d1d;
		background-blend-mode: multiply;
	    background-size: cover;
		background-position: center;
		text-align: right !important;
	}
	.missions .nft-image {
		margin-right: 10px !important;
		position: relative;
		float: left;
		top: -18px;
		left: 18px;
	}
	.missions .nft-data:hover {
		background-attachment: fixed;
		background-size: contain;
		background-position: center;
	}
	.missions .nft-name {
		padding-right: 5px !important;
		font-size: 1.5rem !important;
		font-family: Arial, sans-serif;
		text-align: right;
	}
	.missions .nft-level {
		padding-right: 5px !important;
	}
}

@media screen and (min-width: 2005px) {
	.aeoniumsky {
	    width: 33.33% !important;
	}
	
    .aeoniumsky .nft-data {
        height: 487px;
        text-align: left !important;
        padding: 0px;
        margin: 0px;
        margin-top: -2px !important;
    }
	
	.aeoniumsky .nft-name {
        font-size: 1rem !important;
        text-align: left;
        display: none;
    }
	
	.aeoniumsky .nft-level {
        display: none;
    }
	
    .aeoniumsky .nft-image {
        max-height: none;
        top: 0px;
        left: 0px;
        margin-right: 0px !important;
        padding: 0px;
    }
	
    .aeoniumsky img {
        width: 100% !important;
        max-width: 487px !important;
        max-height: none !important;
        height: auto;
    }
}

@media screen and (max-width: 1780px) {
	body{
  	  background-position: bottom;
	}
}

@media screen and (max-width: 1400px) {
	.achievement{
		max-width: 100%;
	}
	.nft img {
	    max-width: 140px;
	}
}
@media screen and (max-width: 1200px) {
	.missions .nft-data {
		background-blend-mode: multiply;
	    background-size: cover;
		background-position: center;
		background-image: none !important;
	}
	
	.nft {
		width: 50%;
	}
	.nft img {
	    max-width: 175px;
	}
	#filtered-content {
		position: relative;
		top: 0px;
	}

	#filter-nfts {
		position: relative;
	    top: -10px;
	}
	.member {
		width: 50%;
	}
}

@media screen and (max-width: 1120px) {
	.nft img {
	    max-width: 175px;
	}
	.soldiers{
		flex: 100%;
		max-width: 100%;
	}
	.diamond-container {
		background-size: cover;
	}
}

@media screen and (min-width: 701px) {
	#burger-menu{
		  display: none;
	}
	#navbar{
		  display: flex;
	}
	.outcome-total {
	    position: relative;
	    top: -13px;
	}
}

/* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 700px) {
	.navbar {
		display: none;
		position: fixed;
	    width: 100%;
		max-height: 100%;
	    z-index: 1;
		overflow-y: scroll;
	}
	.navbar .icon {
		display: none;
	}
	.banner .logo img{
		width: 90%;
	}
	.navbar a{
		width: 100%;
	}
	#burger-menu {
		display: block;
		position: relative;
		z-index: 99;
	}
	#burger-menu #burger-icon {
		position: fixed;
		top: 0px;
		right: 0px;
		width: 50px;
		height: auto;
		padding-top: 5px;
		padding-right: 10px;
	}
	
	.row, .navbar {   
		flex-direction: column;
	}
	.navbar-first {
		margin-left: 0;
	}
	.navbar img {
		margin: 0 auto;
		width: 120px;
		height: 120px;
		margin-top: 10px;
	}
	.member {
		width: 100%;
	}
	#results {
		min-height: 350px;
		max-height: 350px;
	}
	#results-image {
		min-height: 350px;
		max-height: 350px;
	}
	#results img {
		max-height: 350px;
	}
	#transactions {
		font-size: 7px;
		/*-webkit-filter: drop-shadow(5px 5px 5px #202225);
	    filter: drop-shadow(5px 5px 5px #202225);*/
	}
	#transactions th, #transactions td {
		padding: 1px;
		width: 0;
	}
	#transactions .icon {
	    width: 8px;
	}
	#transactions-pane {
		max-height: unset;
		overflow: unset;
	}
	#row1 .col1of3,
	#row4 .col1of3 {
		padding: 4px;
	}
	.achievement .text {
		font-size: 1rem;
	}
	.achievement .icon {
		width: 65px;
	}
	.navbar a {
	    border-bottom: 1px solid #43464D;
	}
	.nft {
		width: 100%;
	}
	.current-address {
		display: none;
	}
	// Hide wallet connect on mobile devices
	.wallet-connect{
		display: none;
	}
	.consumable {
		margin-right: 0px !important;
	}
	.amount {
		font-size: 15px;
	}
	.raid-title{
		font-size: 16px;
	}
	/*
	.wallet-connect {
		display: none;
	}*/
}

@media screen and (max-width: 375px) {
	#player-stats {
		max-width: 100%;
	}
	
	.role {
	    font-size: 1rem;
	}
	
	.button {
		font-size: 1.5rem;
	}
	
	#transactions strong {
    	font-size: 8px !important;
	}
	
	#transactions img {
		width: 20px !important;
	}
	
	#carbon {
	    max-width: 180px;
	}
}

.aeoniumsky .nft-name {
    font-size: 0.8rem !important;
}

/* ── Wallet Nav Button ── */
#wallet-nav-btn {
    background: none; border: none; cursor: pointer;
    padding: 10px 14px; display: flex; align-items: center;
    position: relative; top: -2px; right: 6px;
}
.wallet-nav-icon {
    width: 20px !important; height: 20px !important; opacity: 0.75;
    transition: opacity 0.2s;
}
#wallet-nav-btn:hover .wallet-nav-icon { opacity: 1; }

td {
	color: #aac0cc !important;
	font-size: 0.85rem;
}

.container strong {
	color: #00c8a0;
	font-weight: normal;
}

/* ── Carbon Slider ── */
input[type="range"]#carbon, input[type="range"]#balance, input[type="range"]#diamond {
    -webkit-appearance: none; appearance: none;
    height: 4px; border-radius: 2px;
    background: linear-gradient(to right, #00c8a0 0%, #00c8a0 100%, #2a3a4a 100%);
    outline: none; cursor: pointer;
}
input[type="range"]#carbon::-webkit-slider-thumb, input[type="range"]#balance::-webkit-slider-thumb, input[type="range"]#diamond::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px; border-radius: 50%;
    background: #00c8a0; cursor: pointer;
    border: 2px solid #07111d;
    box-shadow: 0 0 4px rgba(0,200,160,0.5);
}
input[type="range"]#carbon::-moz-range-thumb, input[type="range"]#balance::-moz-range-thumb, input[type="range"]#diamond::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%;
    background: #00c8a0; cursor: pointer;
    border: 2px solid #07111d;
}

/* ── Confirm Modal ── */
#confirm-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65); z-index: 1100;
}
#confirm-modal {
    position: fixed;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: #0d1e2e; border: 1px solid rgba(0,200,160,0.25);
    border-radius: 12px; z-index: 1101; width: 380px; max-width: 92vw;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

/* ── Notification Modal ── */
#notify-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65); z-index: 1100;
}
#notify-modal {
    position: fixed;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: #0d1e2e; border: 1px solid rgba(0,200,160,0.25);
    border-radius: 12px; z-index: 1101; width: 380px; max-width: 92vw;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.notify-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid rgba(0,200,160,0.15);
    font-size: 0.75rem; font-weight: bold; letter-spacing: 0.1em;
    text-transform: uppercase; color: #00c8a0;
}
.notify-close {
    background: none; border: none; color: #5a7888; font-size: 1.4rem;
    cursor: pointer; line-height: 1; padding: 0 2px; transition: color 0.2s;
}
.notify-close:hover { color: #fff; }
.notify-body {
    padding: 24px 20px; color: #e8eaed; font-size: 0.9rem; line-height: 1.6;
}
.notify-footer {
    padding: 0 20px 20px; display: flex; justify-content: flex-end;
}

/* ── Wallet Modal ── */
#wallet-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.65); z-index: 1000;
}
#wallet-modal {
    display: none; position: fixed;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: #0d1e2e; border: 1px solid rgba(0,200,160,0.25);
    border-radius: 12px; z-index: 1001; width: 340px; max-width: 92vw;
    flex-direction: column; gap: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.wallet-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid rgba(0,200,160,0.15);
    font-size: 0.85rem; font-weight: bold; letter-spacing: 0.08em;
    text-transform: uppercase; color: #00c8a0;
}
.wallet-modal-close {
    background: none; border: none; color: #5a7888; font-size: 1.4rem;
    cursor: pointer; line-height: 1; padding: 0 2px;
    transition: color 0.2s;
}
.wallet-modal-close:hover { color: #fff; }
.wallet-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; padding: 20px;
}
.wallet-panel {
    display: flex; flex-direction: column; align-items: center;
    gap: 10px; padding: 18px 12px; border-radius: 10px;
    background: #0a1929; border: 1px solid rgba(0,200,160,0.12);
    cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.wallet-panel:hover {
    border-color: #00c8a0; background: rgba(0,200,160,0.08);
}
.wallet-panel-icon {
    width: 52px; height: 52px; border-radius: 10px; object-fit: contain;
}
.wallet-panel-name {
    font-size: 0.78rem; font-weight: bold; color: #c8d8e8;
    text-align: center;
}
.wallet-panel-empty {
    grid-column: 1 / -1; text-align: center;
    color: #5a7888; font-size: 0.8rem; padding: 16px 0; line-height: 1.6;
}
.wallet-modal-refresh {
    padding: 0 20px 20px;
}
.wallet-refresh-btn {
    width: 100%; padding: 10px; border-radius: 8px;
    background: rgba(0,200,160,0.08); border: 1px solid rgba(0,200,160,0.2);
    color: #00c8a0; font-size: 0.78rem; cursor: pointer;
    transition: background 0.2s;
}
.wallet-refresh-btn:hover { background: rgba(0,200,160,0.18); }
#wallet-status {
    flex-direction: column; align-items: center; justify-content: center;
    padding: 30px 20px; min-height: 140px; gap: 14px; text-align: center;
}
.wallet-spinner {
    width: 42px; height: 42px;
    border: 3px solid rgba(0,200,160,0.15);
    border-top-color: #00c8a0;
    border-radius: 50%;
    animation: wallet-spin 0.75s linear infinite;
    flex-shrink: 0;
}
@keyframes wallet-spin { to { transform: rotate(360deg); } }
.wallet-status-text {
    color: #e8eaed; font-size: 0.88rem; margin: 0; line-height: 1.5;
}
.wallet-status-text small { color: #5a7888; font-size: 0.8em; }
.wallet-result-icon {
    font-size: 2.2rem; font-weight: bold; line-height: 1;
}
.wallet-result-icon.success { color: #00c8a0; }
.wallet-result-icon.error   { color: #e05050; }
.wallet-result-action {
    display: inline-block; margin-top: 4px; text-align: center;
    text-decoration: none;
}


/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN SYSTEM v2  —  Layout, Card, NFT Grid & Mobile Upgrades
   ─────────────────────────────────────────────────────────────────────────
   All rules here are additive / targeted overrides. Existing IDs & classes
   are preserved so JS interactions are unaffected.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Content card baseline ─────────────────────────────────────────────── */
/* .content had only border-radius:10px — give it the #player-stats card look */
.content {
    background-color: #0a1929;
    border: 1px solid rgba(0,200,160,0.13);
    padding: 18px;
    margin-bottom: 16px;
}
/* Don't double-border the sub-cards that already have #player-stats */
#player-stats { border: 1px solid rgba(0,200,160,0.20); }
/* Raids pane containers: strip wrapper on mobile to avoid double-padding */
@media screen and (max-width: 700px) {
    .content.raids { padding: 0; background: transparent; border: none; overflow-x: hidden; }
}

/* Raid section toggle header */
.rc-section-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    cursor: pointer;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(0,200,160,0.2);
    margin-bottom: 10px;
    user-select: none;
    transition: opacity 0.15s;
}
.rc-section-title:hover { opacity: 0.75; }
.rc-section-label {
    font-size: 1.6rem;
    font-weight: 300;
    color: #00c8a0;
    font-family: Arial, sans-serif;
    letter-spacing: 0.01em;
}
.raid-arrow-icon {
    width: 18px;
    height: 18px;
    opacity: 0.8;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    display: block;
}

/* ── Side panel subtle separation ──────────────────────────────────────── */
.side { border-right: 1px solid rgba(0,200,160,0.07); }

/* ── Page-section header strip (used on all pages) ─────────────────────── */
.page-banner {
    padding: 18px 24px 0;
    display: flex;
    align-items: center;
    gap: 14px;
}
.page-banner h2 { margin: 0; }

/* ── NFT grid: flexbox (replaces legacy float grid) ────────────────────── */
.nfts {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    min-height: unset;   /* was 1000px – caused huge empty space */
    gap: 0;
    clear: unset;
}
.nft {
    float: none;         /* flex parent ignores float anyway; explicit clear */
    box-sizing: border-box;
}

/* ── NFT card data panel: flex column so button always sits at bottom ───── */
.nft-data {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
/* Give the name / meta stretch so button is pushed down */
.nft-data .nft-name,
.nft-data .nft-level,
.nft-data .nft-owner { flex-shrink: 0; }
.nft-data .small-button,
.nft-data .button { margin-top: auto; }

/* ── NFT image: uniform square crop ────────────────────────────────────── */
.nft-image {
    display: block;
    float: none;
    width: 100%;
    height: 160px;
    min-height: unset;
    max-height: unset;
    overflow: hidden;
    margin-right: 0;
    border-radius: 8px 8px 0 0;
}
.nft-image img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background-color: #06101c;
    display: block;
    max-width: unset;
    max-height: unset;
    border-radius: 8px 8px 0 0;
}

/* ── Mission cards keep side-by-side image layout ──────────────────────── */
/* (image floats left with stats to the right — intentional for dense info) */
.missions .nft-image,
.inventory .nft-image {
    float: left;
    width: auto;
    height: 165px;
    min-height: unset;
    max-height: unset;
    border-radius: 6px;
    margin-right: 8px;
}
.missions .nft-image img,
.inventory .nft-image img {
    width: auto;
    height: 165px;
    max-width: 160px;
    object-fit: contain;
    background-color: transparent;
    border-radius: 6px;
}

/* ── Store grid: flexbox so rows stay equal height ──────────────────────── */
/* Float grid staircases when cards have different numbers of buy buttons.   */
/* Scoped to .store-nfts so missions/diamond float layout is unaffected.     */
.store-nfts {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
    clear: both;
}
.store-nfts .nft {
    float: none !important;
    display: flex;
    flex-direction: column;
}
.store-nfts .nft-data {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}
/* Push button group to bottom, but don't space individual buttons apart */
.store-nfts .nft-data .nft-level:last-of-type { flex: 1; }
.store-nfts .nft-data .nft-level { flex-shrink: 0; }
/* ── Store items: image above text ─────────────────────────────────────── */
.store-item { width: 33%; }
.store-item .nft-data { text-align: left; }
.store-item .nft-name { text-align: left; padding-top: 10px; }
.store-item .nft-image {
    height: 180px;
    border-radius: 8px;
}
.store-item .nft-image img {
    height: 180px;
    object-fit: contain;
}
/* Store buy buttons: inline, compact, no extra gaps between multiple buttons */
.store-nfts .nft-data form { margin: 0; padding: 0; display: inline-block; }
.store-nfts .nft-data .small-button { margin-top: 4px !important; margin-right: 4px; }
/* Buttons area sits at bottom of card */
.store-nfts .nft-data .buttons-area { margin-top: auto; padding-top: 8px; }

/* ── Diamond skull section: keep tall data card ─────────────────────────── */
.diamond-skull-data { min-height: 0; }

/* ── Diamond skull project section header ───────────────────────────────── */
.skull-section {
    border: 1px solid rgba(0,200,160,0.13);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    background: #060e17;
}
.skull-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #0a1929;
    border-bottom: 1px solid rgba(0,200,160,0.10);
}
.skull-acc-icon {
    width: 22px; height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}
.skull-acc-label {
    color: #00c8a0;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Leaderboard: full-width centered instead of 33% column ─────────────── */
.col1of3 {
    flex: 1 1 100%;
    min-width: unset;
    max-width: 900px;
    margin: 0 auto;
}

/* ── Realm location items: flex rows (replaces <table> in sidebar) ─────── */
.location-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,200,160,0.08);
}
.location-row:last-child { border-bottom: none; }
.location-icon-wrap {
    flex-shrink: 0;
    width: 52px;
    text-align: center;
}
.location-icon-wrap img { width: 44px; opacity: 0.85; }
.location-info { flex: 1; min-width: 0; }
.location-info strong { display: block; font-size: 0.82rem; color: #00c8a0; text-transform: uppercase; letter-spacing: 0.04em; }
.location-meta { font-size: 0.75rem; color: #7a9eb0; line-height: 1.6; }
.location-action {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    min-width: 120px;
}
.location-action .small-button { width: 100%; box-sizing: border-box; text-align: center; }
.loc-upgrade-wrap { display: flex; flex-direction: column; gap: 4px; }
.loc-need-msg { font-size: 0.7rem; color: #7a9eb0; text-align: right; line-height: 1.4; }
.loc-status-labels { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 0; min-height: 0; }
.rc-col-content .loc-status-labels { flex-direction: column; align-items: center; }
.rc-col-content .loc-status-tag { background: rgba(0,0,0,0.45); border-color: rgba(0,200,160,0.55); color: #00e8bc; text-shadow: 0 1px 3px rgba(0,0,0,0.9); }
.loc-status-tag { font-size: 0.68rem; color: #00c8a0; background: rgba(0,200,160,0.1); border: 1px solid rgba(0,200,160,0.3); border-radius: 4px; padding: 1px 5px; line-height: 1.5; }

/* ── Location consumable system ─────────────────────────────────────────── */
/* Override role flex-direction for location list items */
.location-wrapper li.role { flex-direction: column; align-items: stretch; }

/* Central inventory strip */
.loc-inventory-strip {
    display: flex; flex-wrap: wrap; gap: 10px;
    padding: 10px 0 14px;
    border-bottom: 1px solid rgba(0,200,160,0.15);
    margin-bottom: 4px;
}
.loc-inventory-strip-header {
    width: 100%; font-size: 0.72rem; color: #7a9eb0;
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px;
    display: flex; justify-content: space-between; align-items: center;
}
.loc-inventory-header { display: block; font-size: 0.82rem; color: #00c8a0; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.loc-inventory-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; padding: 4px 0; }
.loc-inv-slot { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.loc-inv-slot img { width: 26px; height: 26px; }
.loc-inv-slot.unavailable img { opacity: 0.25; }
.loc-inv-slot .loc-con-badge {
    position: static;
    font-size: 0.65rem; font-weight: bold;
    background: none; color: #7a9eb0;
    width: auto; height: auto; border-radius: 0;
    padding: 0;
}
.loc-inv-slot.available .loc-con-badge { color: #00c8a0; }

/* Per-location consumable strip */
.loc-consumable-strip {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 8px 0 4px;
    margin-left: 64px;
}
.loc-con-slot {
    position: relative; width: 34px; height: 34px;
    border-radius: 6px; border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}
.loc-con-slot img { width: 22px; height: 22px; pointer-events: none; margin-right: 0; }
.loc-inv-slot img { margin-right: 0; }
.loc-con-slot.equipped {
    border-color: #00c8a0;
    background: rgba(0,200,160,0.12);
    box-shadow: 0 0 7px rgba(0,200,160,0.28);
}
.loc-con-slot.available:hover {
    border-color: rgba(0,200,160,0.45);
    background: rgba(0,200,160,0.07);
}
.loc-con-slot.unavailable { opacity: 0.25; cursor: not-allowed; pointer-events: none; }
.loc-con-badge {
    position: absolute; top: -5px; right: -5px;
    background: #00c8a0; color: #000;
    font-size: 0.55rem; font-weight: bold;
    border-radius: 9999px; width: 14px; height: 14px;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}

/* Stock Location button row */
.loc-stock-row {
    display: flex; justify-content: flex-end;
    width: 100%;
    padding: 2px 0 10px;
}

/* Raid consumable row (above raid button) */
.raid-con-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0 8px;
    margin-bottom: 6px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem; color: #7a9eb0;
}
.raid-all-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.82rem; }
.raid-all-label input[type=checkbox] { cursor: pointer; width: 14px; height: 14px; }
.raid-gear-icon {
    font-size: 1.5rem;
    cursor: pointer;
    color: #7a9eb0;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s;
}
.raid-gear-icon:hover { color: #00c8a0; }
.raid-config-label { font-size: 0.8rem; color: #7a9eb0; }
.soldier-discharge-btn { background-color: #7a2020 !important; color: #ffaaaa !important; box-shadow: 0 4px #2a0808 !important; }
.soldier-discharge-btn:hover { background-color: #9e2a2a !important; }
.modal-skull-loader { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:32px 0; }
.modal-skull-loader .lsk { font-size:2rem; animation:lp 1.2s ease-in-out infinite; }
.modal-skull-loader .lbar-wrap { width:120px; height:3px; background:rgba(255,255,255,.08); border-radius:2px; overflow:hidden; }
.modal-skull-loader .lbar { height:100%; background:#00c8a0; width:0%; animation:lb 3s ease-out forwards; }
@keyframes lp { 0%,100%{opacity:.3;transform:scale(.92)} 50%{opacity:1;transform:scale(1)} }
@keyframes lb  { to { width:85%; } }

/* Raid consumables modal grid */
.raid-con-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 8px;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
}
.raid-con-item:last-child { border-bottom: none; }
.raid-con-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.raid-con-item label input[type=checkbox] { flex-shrink: 0; cursor: pointer; }
.raid-con-item label img { flex-shrink: 0; width: 36px; height: 36px; }
.raid-con-item.raid-con-item-empty { opacity: 0.38; }
.raid-con-name { font-size: 0.82rem; font-weight: bold; color: #fff; white-space: nowrap; }
.raid-con-qty { font-size: 0.75rem; color: #00c8a0; font-weight: bold; text-align: right; align-self: center; }
.raid-con-preview { font-size: 0.72rem; color: #00c8a0; }
.raid-con-desc { font-size: 0.7rem; color: #7a9eb0; grid-column: 1/3; margin: 3px 0 0; padding-left: 85px; }
.raid-con-summary {
    margin-top: 10px; padding: 8px 10px;
    background: rgba(0,200,160,0.08); border-radius: 6px;
    font-size: 0.78rem; color: #00c8a0; min-height: 32px;
}

/* Raid consumable icons in raid rows */
.raid-active-cons { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.raid-active-cons img { width: 18px; height: 18px; opacity: 0.85; }

/* Raid consumables modal — card-style matching site theme */
.raid-modal-content {
    position: relative;
    background: #0a1929;
    border: 1px solid rgba(0,200,160,0.25);
    border-radius: 12px;
    margin: 8% auto;
    padding: 20px 22px 18px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,200,160,0.08);
    animation-name: animatetop;
    animation-duration: 0.3s;
}
.raid-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,200,160,0.13);
}
.raid-modal-header h2 { color: #fff; }
.raid-modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.15s;
}
.raid-modal-close:hover { color: #fff; }

/* ── Raid Status Cards (outgoing/incoming pending/completed) ── */
.rc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
}
.rc-card {
    background: #0d2035;
    border: 1px solid rgba(0,200,160,0.12);
    border-radius: 10px;
    overflow: hidden;
}
/* Progress bar */
.rc-progress-bar {
    height: 3px;
    background: rgba(255,255,255,0.06);
}
.rc-progress-fill {
    height: 100%;
    background: #00c8a0;
    min-width: 2px;
}
/* Header */
.rc-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.rc-theme-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
/* Realm name: full-width row above the header */
.rc-card-realm {
    text-align: left;
    font-weight: 700;
    color: #00c8a0;
    font-size: 0.92rem;
    padding: 10px 14px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rc-card-date {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.32);
    padding: 0 14px 6px;
    letter-spacing: 0.03em;
    text-align: right;
}
.rc-user-row {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #7a9eb0;
    font-size: 0.8rem;
}
.rc-user-row:hover { color: #00c8a0; }
.rc-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}
/* Countdown (pending) */
.rc-countdown-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 2px;
}
.rc-countdown-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.45;
    color: #7a9eb0;
}
.rc-countdown-block .countdown {
    font-size: 0.8rem;
    color: #00c8a0;
    font-weight: 600;
    white-space: nowrap;
}
/* Outcome badge (completed) */
.rc-outcome-badge {
    flex-shrink: 0;
    margin-left: auto;
    padding: 5px 14px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}
.rc-victory {
    color: #00c8a0;
    background: rgba(0,200,160,0.12);
    border: 1px solid rgba(0,200,160,0.3);
}
.rc-defeat {
    color: #ff5c5c;
    background: rgba(255,92,92,0.1);
    border: 1px solid rgba(255,92,92,0.28);
}
/* Card body: two columns */
.rc-card-body {
    display: flex;
}
.rc-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 10px;
    border-right: 1px solid rgba(255,255,255,0.10);
    min-width: 0;
    aspect-ratio: 4 / 3;
}
.rc-col:last-child { border-right: none; }
.rc-col-avatar {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.35);
    box-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
.rc-col-label {
    display: inline-block;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.65);
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 2px 10px;
    flex-shrink: 0;
}
.rc-col-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
    font-size: 0.82rem;
    color: #ffffff;
}
/* ── Result pill system ──────────────────────────────────── */
.rc-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 20px;
    padding: 3px 11px;
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 3px rgba(0,0,0,0.95);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rc-pill-success { border-color: rgba(0,200,160,0.6);  color: #00e8bc; }
.rc-pill-failure { border-color: rgba(255,60,60,0.6);   color: #ff6b6b; }
.rc-pill-gain    { border-color: rgba(0,200,160,0.45);  color: #00c8a0; }
.rc-pill-loss    { border-color: rgba(255,60,60,0.45);  color: #ff5c5c; }
.rc-pill-dead    { border-color: rgba(255,60,60,0.25);  color: rgba(255,100,100,0.55); font-weight: 400; }
.rc-pill-gear    { border-color: rgba(255,165,0,0.45);  color: rgba(255,190,60,0.9); }
.rc-pill-neutral { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.75); }
/* Action row (retreat button) */
.rc-action-row {
    padding: 8px 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: flex-end;
}
.rc-action-col {
    padding: 8px 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
/* Soldier logs panel (completed raids) */
.rc-logs-panel {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 8px 14px 10px;
}
.rc-logs-col {
    flex: 1;
    min-width: 0;
}
.rc-logs-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.45);
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
    margin-bottom: 4px;
}
.rc-log-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #e8f4fc;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    padding: 2px 0;
}
.rc-log-row.rc-log-dead {
    opacity: 0.45;
    text-decoration: line-through;
}
.rc-log-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-log-gear { display: flex; gap: 2px; flex-shrink: 0; }
/* History link */
.rc-history-link {
    padding: 4px 2px 10px;
    font-size: 0.82rem;
}
.rc-history-link a { color: #7a9eb0; text-decoration: none; }
.rc-history-link a:hover { color: #00c8a0; }

/* ── Raid Stats & Faction Stats cards ─────────────────────── */
.rs-grid {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.rs-card {
    flex: 1 1 calc(50% - 7px);
    min-width: 220px;
    background: #0d2035;
    border: 1px solid rgba(0,200,160,0.12);
    border-radius: 10px;
    padding: 18px 16px 14px;
    display: flex;
    flex-direction: column;
}
.rs-card-period {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #00c8a0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.rs-score-label {
    font-size: 0.68rem;
    color: #7a9eb0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}
.rs-score {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 16px;
}
.rs-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
    flex: 1;
}
.rs-stat {
    background: rgba(0,200,160,0.05);
    border: 1px solid rgba(0,200,160,0.08);
    border-radius: 6px;
    padding: 10px 10px 8px;
}
.rs-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.rs-stat-label {
    font-size: 0.68rem;
    color: #7a9eb0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 3px;
}
.rs-success .rs-stat-value { color: #00c8a0; }
.rs-failure .rs-stat-value { color: #ff5c5c; }
.rs-pct {
    font-size: 0.72rem;
    font-weight: 400;
    opacity: 0.75;
}
.rs-lb-link { text-align: center; margin-top: auto; padding-top: 4px; }
.rs-lb-link form { margin: 0; }
.rs-faction-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #c8dce8;
    margin-bottom: 14px;
}
.rs-faction-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
@media (max-width: 700px) {
    .rs-card { flex: 1 1 100%; }
}

/* Mission stats item inventory */
.ms-inv-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: #00c8a0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 18px 0 10px;
    text-align: left;
}
.ms-inventory {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ms-inv-pill {
    flex: 1 1 80px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    background: rgba(0,200,160,0.05);
    border: 1px solid rgba(0,200,160,0.12);
    border-radius: 8px;
    padding: 14px 8px 12px;
    text-align: center;
}
.ms-inv-pill img.icon {
    display: block;
    margin: 0 auto;
}
.ms-inv-name {
    font-size: 0.7rem;
    color: #7a9eb0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}
.ms-inv-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

/* ── Current Missions Card Layout ───────────────────────────────────────── */
.mc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mc-card {
    background: #0d2035;
    border: 1px solid rgba(0,200,160,0.12);
    border-radius: 10px;
    overflow: hidden;
}
.mc-card.success {
    background-color: #1a0730 !important;
    border-color: rgba(100,0,180,0.35);
}
.mc-card.failure {
    background-color: #2a0518 !important;
    border-color: rgba(200,0,80,0.35);
}

/* Header: icons | body | aside */
.mc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 0;
}
.mc-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.mc-mission-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(0,200,160,0.2);
}
.mc-project-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 0;
}
.mc-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}
.mc-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e8eaed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
/* Items row — sits between stats strip and progress bar */
.mc-items {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 12px;
    border-top: 1px solid rgba(0,200,160,0.06);
}
.mc-consumables-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.mc-currency-icon.icon {
    width: 22px !important;
    height: 22px !important;
    border-radius: 4px;
    margin: 0 !important;
}
.mc-items .icon {
    width: 22px !important;
    height: 22px !important;
    border-radius: 4px;
    border: 1px solid rgba(0,200,160,0.15) !important;
    margin: 0 !important;
}
.mc-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    text-align: right;
}
.mc-time-label {
    font-size: 0.58rem;
    color: #7a9eb0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mc-time {
    font-size: 0.78rem;
    font-weight: 600;
    color: #00c8a0;
    white-space: nowrap;
}
.mc-result {
    margin-top: 2px;
}
.mc-claim-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #00c8a0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.mc-card.failure .mc-time { color: #ff5c5c; }
.mc-card.success .mc-time { color: #b47fff; }

/* Stats strip */
.mc-stats {
    display: flex;
    border-top: 1px solid rgba(0,200,160,0.08);
    margin-top: 8px;
}
.mc-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 4px;
    border-right: 1px solid rgba(0,200,160,0.06);
    min-width: 0;
}
.mc-stat:last-child { border-right: none; }
.mc-stat-label {
    font-size: 0.55rem;
    color: #7a9eb0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.mc-stat-val {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e8eaed;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

/* Progress bar */
.mc-progress {
    height: 3px;
    background: #080f18;
}
.mc-progress-fill {
    height: 100%;
    background: rgba(0,200,160,0.45);
}
.mc-card.failure .mc-progress-fill { background: rgba(200,0,80,0.45); }
.mc-card.success .mc-progress-fill { background: rgba(100,0,180,0.45); }

@media (max-width: 500px) {
    .mc-title { font-size: 0.75rem; }
    .mc-stat-label { font-size: 0.5rem; }
    .mc-stat-val { font-size: 0.7rem; }
    .mc-time { font-size: 0.7rem; }
}

/* ── Leaderboard list rows ──────────────────────────────────────────────── */
.lb-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
    overflow-x: hidden;
}
.lb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0d2035;
    border: 1px solid rgba(0,200,160,0.10);
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 0;
}
.lb-row.lb-highlight {
    border-color: rgba(0,200,160,0.5);
    background: rgba(0,200,160,0.06);
    box-shadow: 0 0 0 1px rgba(0,200,160,0.2);
}
.lb-rank {
    flex-shrink: 0;
    width: 34px;
    text-align: center;
}
.lb-rank-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: #7a9eb0;
}
.lb-trophy { width: 28px; height: 28px; object-fit: contain; }
.lb-ident {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 170px;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
}
.lb-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}
.lb-faction-icon {
    border-radius: 4px !important;
    border: none !important;
}
.lb-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e8eaed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.lb-name a { color: inherit; text-decoration: none; }
.lb-name a:hover { color: #00c8a0; }
.lb-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
}
.lb-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,200,160,0.04);
    border: 1px solid rgba(0,200,160,0.08);
    border-radius: 6px;
    padding: 3px 8px;
    min-width: 44px;
}
.lb-stat-label {
    font-size: 0.5rem;
    color: #7a9eb0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.lb-stat-val {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e8eaed;
    white-space: nowrap;
}
.lb-reward {
    background: rgba(0,200,160,0.08);
    border-color: rgba(0,200,160,0.25);
}
.lb-reward .lb-stat-val { color: #00c8a0; }
@media (max-width: 600px) {
    /* Use CSS grid: narrow left column (rank stacked over avatar+name), stats fill right */
    .lb-row {
        display: grid;
        grid-template-columns: 56px 1fr;
        grid-template-areas:
            "rank  stats"
            "ident stats";
        gap: 2px 8px;
        padding: 6px 8px;
        max-width: 100%;
        min-width: 0;
        align-items: center;
    }
    .lb-rank  { grid-area: rank;  width: auto; text-align: center; }
    .lb-ident {
        grid-area: ident;
        flex-direction: column;
        align-items: center;
        width: auto;
        flex-shrink: 0;
        gap: 2px;
        min-width: 0;
        overflow: hidden;
    }
    .lb-avatar { width: 32px; height: 32px; }
    .lb-name {
        font-size: 0.6rem;
        white-space: normal;
        word-break: break-all;
        text-align: center;
        line-height: 1.2;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .lb-stats {
        grid-area: stats;
        align-self: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        width: auto;
        min-width: 0;
        padding-left: 0;
    }
    .lb-stat { min-width: 38px; }
    .lb-stat-val { white-space: normal; word-break: break-word; }
}

/* Mobile: stack columns */
@media (max-width: 500px) {
    .rc-card-body { flex-direction: column; }
    .rc-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); aspect-ratio: auto; padding: 10px 10px; }
    .rc-col:last-child { border-bottom: none; }
    .rc-card-header { gap: 10px; }
    .rc-theme-img { width: 40px; height: 40px; }
    .rc-pill { font-size: 0.7rem; padding: 2px 9px; }
}

.raid-modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,200,160,0.1);
    margin-top: 14px;
}
.raid-modal-footer label {
    flex: 1 1 100%;
    margin-right: 0 !important;
}
@media (min-width: 420px) {
    .raid-modal-footer label { flex: 0 1 auto; margin-right: auto !important; }
}

/* Inventory info modal grid */
.inv-info-grid { display: flex; flex-direction: column; gap: 14px; }
.inv-info-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0,200,160,0.09);
}
.inv-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.inv-info-item .icon { width: 32px; height: 32px; flex-shrink: 0; margin-right: 0; margin-top: 2px; }
.inv-info-item strong { display: block; font-size: 0.85rem; color: #00c8a0; margin-bottom: 3px; }
.inv-info-item p { margin: 0; font-size: 0.75rem; color: rgba(255,255,255,0.6); line-height: 1.5; }

@media (max-width: 400px) {
    .loc-consumable-strip { margin-left: 0; }
    .loc-stock-row { margin-top: 14px; }
}
@media (max-width: 700px) {
    .location-row { flex-wrap: wrap; }
    .location-action {
        flex-basis: 100%;
        min-width: 0;
        padding-left: calc(52px + 12px);
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 5px;
    }
    .loc-upgrade-wrap { flex: 1 1 auto; flex-direction: row; flex-wrap: wrap; gap: 5px; align-items: center; }
    .loc-upgrade-wrap .small-button { flex: 1 1 auto; width: auto; }
    .loc-modal-btn { flex-shrink: 0; width: auto !important; }
    .loc-need-msg { flex-basis: 100%; text-align: left; }
}

/* ── Raid Target Cards ───────────────────────────────────────────────────── */
.raid-target-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}
.raid-target-card {
    background: #0d2035;
    border: 1px solid rgba(0,200,160,0.15);
    border-radius: 10px;
    overflow: hidden;
}
.rtc-header {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rtc-theme {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.rtc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.rtc-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.rtc-realm-name {
    font-size: 0.95rem;
    font-weight: bold;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rtc-user {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #7a9eb0;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.rtc-user:hover { color: #00c8a0; }
.rtc-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.rtc-faction {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    color: #7a9eb0;
}
.rtc-faction-icon { width: 16px; height: 16px; object-fit: contain; }
.rtc-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 2px;
}
.rtc-stat {
    display: flex;
    flex-direction: column;
    min-width: 68px;
}
.rtc-stat-label {
    font-size: 0.65rem;
    color: #4a7a8a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}
.rtc-stat-value {
    font-size: 0.88rem;
    color: #c8dde8;
    font-weight: 600;
}
.rtc-stat-success .rtc-stat-value { color: #00c8a0; font-size: 1rem; }

/* Locations */
.rtc-locations {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rtc-loc-category { display: flex; flex-direction: column; gap: 5px; }
.rtc-loc-cat-header {
    display: flex;
    align-items: center;
    gap: 6px;
}
.rtc-loc-cat-name {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.55;
}
.rtc-cat-defense { color: #00c8a0; }
.rtc-cat-offense { color: #00c8a0; }
.rtc-loc-cat-boost {
    font-size: 0.62rem;
    font-weight: bold;
    color: #00c8a0;
    background: rgba(0,200,160,0.12);
    border: 1px solid rgba(0,200,160,0.25);
    border-radius: 10px;
    padding: 1px 6px;
}
.rtc-loc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.rtc-loc-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 20px;
    padding: 3px 9px;
    font-size: 0.74rem;
}
.rtc-loc-shielded {
    background: rgba(245,166,35,0.1);
    border-color: rgba(245,166,35,0.4);
}
.rtc-loc-pill-icon { width: 14px; height: 14px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.rtc-loc-level { font-weight: bold; color: #fff; margin-right: 1px; }
.rtc-loc-name { color: #7a9eb0; }
.rtc-loc-shielded .rtc-loc-name { color: #f5a623; }
.rtc-shield-badge { font-size: 0.68rem; line-height: 1; margin-left: 1px; }

/* Tower garrison — inline after defense pills */
.rtc-garrison-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}
.rtc-garrison-count {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.rtc-garrison-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.rtc-garrison-slot {
    width: 34px;
    height: 34px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
    background: url('/staking/icons/skull.png') center/cover no-repeat;
    background-color: rgba(255,255,255,0.04);
}
.rtc-garrison-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rtc-garrison-empty {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.22);
    font-style: italic;
}

/* Wealth */
.rtc-wealth {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rtc-total-pts {
    font-size: 0.78rem;
    color: #00c8a0;
    font-weight: bold;
    flex-shrink: 0;
    padding-top: 2px;
}
.rtc-balances { display: flex; flex-wrap: wrap; gap: 4px; }
.rtc-balance-pill {
    font-size: 0.7rem;
    background: rgba(0,200,160,0.07);
    border: 1px solid rgba(0,200,160,0.18);
    border-radius: 12px;
    padding: 2px 8px;
    color: #7a9eb0;
}

/* Action row */
.rtc-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
}
.rtc-status-msg {
    font-size: 0.82rem;
    color: #7a9eb0;
    font-style: italic;
}

@media (max-width: 500px) {
    .rtc-theme { width: 68px; height: 68px; }
    .rtc-stats { gap: 4px 12px; }
    .rtc-stat { min-width: 58px; }
    .rtc-action { flex-direction: column; align-items: flex-start; }
    .raid-button { width: 100%; }
}

/* ── Responsive tables: scroll instead of tiny font ─────────────────────── */
@media screen and (max-width: 700px) {
    /* Scrollable containers — tables need this, but leaderboard div rows do not */
    .content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px;
    }
    /* Leaderboard container: clip instead of scroll — lb-rows are flex, not tables */
    #filtered-content {
        overflow-x: hidden;
        padding: 10px;
    }
    /* Tighten the leaderboard column padding on mobile */
    .col1of3 { padding: 8px; }
    /* Restore transactions from 7px */
    #transactions { font-size: 0.78rem; }
    #transactions th, #transactions td {
        padding: 6px 5px;
        width: auto;
    }
    #transactions .icon { width: 16px; }
    /* Restore td from 0.85rem to readable size */
    td { font-size: 0.82rem; }
    /* NFT grid: 2 per row on mobile */
    .nft { width: 50%; }
    /* Store items: 2 per row */
    .store-item { width: 50%; }
    .store-nfts .nft.store-item { width: 50%; }
    .side { border-right: none; padding: 10px; }
    /* Filter: remove negative-top overlap, shrink font */
    #filter-nfts { font-size: 14px; top: 0; text-align: left; margin-bottom: 8px; }
    #filterNFTs, #faction { font-size: 14px; width: auto; max-width: 100%; }
    /* Filtered content: remove negative-top that causes overlap when stacked */
    #filtered-content { top: 0; }
    /* Realms header: collapse spacer so logo and deactivate button sit side by side on mobile */
    .realm-header-spacer { display: none; }
    /* Crafting forms: allow flex rows to wrap on narrow screens */
    #craftingForm > div, #diamondForm > div, #carbonForm > div { flex-wrap: wrap; row-gap: 4px; }
    /* player-stats panel: clip overflow so rubber-band snap-back cannot occur */
    #player-stats { overflow-x: hidden; }
    /* .role flex rows: allow wrapping so button + address don't force overflow */
    .role { flex-wrap: wrap; min-width: 0; }
    /* Wallet/profile address links: allow long strings to break */
    .role a { word-break: break-all; min-width: 0; }
}
@media screen and (max-width: 480px) {
    .nft { width: 100%; }
    .store-item { width: 100%; }
    .store-nfts .nft.store-item { width: 100%; }
}

/* ── REVERT: Missions card layout (float-based, must not be flex column) ── */
/* .nft-data flex column breaks the image-left / stats-right float layout   */
.missions .nft-data,
.inventory .nft-data {
    display: block;
    min-height: 215px;
}

/* ── REVERT: Diamond skull delegation cards (inline-block grid) ──────────── */
/* getDiamondSkullNFTs() outputs .diamond cards using inline-block layout.   */
/* The global .nfts flex container breaks this — restore block context.      */
.diamond-container .nfts {
    display: block;
}
.diamond-container .diamond {
    display: inline-block;
    vertical-align: top;
}
/* Restore diamond-skull-data card height — it holds delegation slot tables  */
.diamond-skull-data {
    min-height: 500px;
}

/* ── CRITICAL REVERT: restore .nfts float grid & .nft float ─────────────── */
/* Switching .nfts to flexbox broke missions (float-clear removed) and       */
/* diamond delegation (inline-block grid). Float-based grid works correctly  */
/* everywhere — image uniformity is handled by object-fit, not flex layout.  */
.nfts {
    display: block;
    clear: both;
    min-height: 0;
}
.nft {
    float: left;
}

/* ── REVERT: Inventory images — intentionally tiny (many items to scan) ─── */
.inventory .nft-image {
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
    overflow: hidden !important;
    overflow-y: clip !important;
    width: auto;
    float: left;
    margin-right: 5px;
    border-radius: 4px;
}
.inventory .nft-image img {
    height: 45px !important;
    width: auto;
    max-width: none;
    object-fit: cover;
    background: transparent;
}

/* ── REVERT: Aeoniumsky puzzle layout (min-width: 2005px) ───────────────── */
/* At large enough screens, aeoniumsky mission images fill the card edge-to- */
/* edge to form a giant meta-image puzzle. height:auto must win over 160px.  */
@media screen and (min-width: 2005px) {
    .aeoniumsky .nft-image {
        height: auto !important;
        min-height: unset !important;
        max-height: none !important;
        width: 100%;
        overflow: visible;
    }
    .aeoniumsky .nft-image img,
    .aeoniumsky img {
        width: 100% !important;
        max-width: 487px !important;
        max-height: none !important;
        height: auto !important;
    }
}

/* ── Diamond skull delegation: transparent panels tight to background ────── */
/* The diamond background image shows through the delegation sections.        */
/* .content card styling must not apply — keep backgrounds and borders off.  */
.diamond-container .content {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0;
}
.diamond-container .row {
    padding: 0;
}

/* ── Aeoniumsky puzzle: zero padding on container, block layout on cards ─── */
@media screen and (min-width: 2005px) {
    /* .content padding shrinks the grid container and breaks full-bleed fit */
    .missions .content {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
    }
    /* flex column breaks the precise margin-top:-2px row-overlap trick */
    .aeoniumsky .nft-data {
        display: block !important;
    }
    /* .nft border-radius clips tile corners — remove for seamless puzzle */
    .aeoniumsky {
        border-radius: 0 !important;
    }
    .aeoniumsky .nft-data {
        border-radius: 0 !important;
    }
}

/* ── NFT Pagination ──────────────────────────────────────────────────────── */
.nft-pagination {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px;
    padding: 16px 4px 8px;
}
.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 10px;
    border-radius: 6px; font-size: 0.85rem; font-weight: bold;
    background: #0d1e2e; border: 1px solid rgba(0,200,160,0.2);
    color: #7a9eb0; text-decoration: none; transition: background 0.15s, color 0.15s;
}
.page-btn:hover { background: rgba(0,200,160,0.12); color: #00c8a0; }
.page-btn.active { background: rgba(0,200,160,0.18); border-color: #00c8a0; color: #00c8a0; }
.page-btn.disabled { opacity: 0.35; pointer-events: none; }
.page-ellipsis { color: #7a9eb0; padding: 0 4px; line-height: 34px; }
.page-info { width: 100%; font-size: 0.78rem; color: #7a9eb0; padding-top: 4px; }
