/********** IMAGES ********* */
/********** GRID ********* */
/********** INLINE ICONS ********* */
/********** FONT ********* */
/********** DIRECTIONS ********* */
/********** TEXT ********* */
/*** MEASUREMENT ** */
/*** COLOR CODES ** */
/*** COLOR USAGE ** */
/*** DEFAULT STYLES ** */
/*** TRIBES ** */
/*** BUILDINGS ** */
/*** RESOURCES ** */
body.village2 div#center div#contentOuterContainer {
  background: none;
  padding: 0;
  border: none;
  z-index: 24;
}
body.village2 div#center div#contentOuterContainer div.contentContainer {
  background: none;
  padding: 0;
  border: none;
}
body.village2 div#center div#contentOuterContainer div.contentTitle {
  background: none;
  box-shadow: none;
  position: absolute;
  left: 0;
  z-index: 500;
  border: none;
}
body.village2 div#center div#contentOuterContainer div.contentTitle .contentTitleButton {
  display: none;
}
body.village2 div#center div#contentOuterContainer div.contentTitle .contentTitleButton#answersButton {
  display: inline-block;
}
body.village2 div#center div#contentOuterContainer div.contentFooter {
  display: none;
}
body.village2 div#center div#contentOuterContainer #content {
  padding: 0;
  width: 628px;
  margin-right: -29px;
  margin-top: -3px;
}

/* ------------------- Village Center------------------- */
/* ----------------------------------------------------- */
/* general */
div.village2 table {
  line-height: 19px;
  background: none;
}
div.village2 table th, div.village2 table td {
  padding: 0;
  background: none;
}
div.village2 table thead th {
  text-align: right;
}
div.village2 table tbody td {
  padding: 1px 2px;
  background: none;
}
div.village2 div.villageMapWrapper {
  width: 554px;
  height: 534px;
}
div.village2 div#village_map {
  width: 628px;
  height: 534px;
  position: absolute;
  z-index: 1;
}
div.village2 div#village_map img.clickareas {
  width: 628px;
  height: 534px;
  position: relative;
  z-index: 98;
}
div.village2 div#village_map img.iso {
  background-image: url('../img_rtl/g/defaultBuildings/iso.png');
}

/* village center map */
/* buildings */
/* levels display */
div.village2 img#lswitch {
  width: 28px;
  height: 28px;
}
div.village2 img#lswitch.lswitchPlus {
  background-image: url('../img_rtl/a/plusBig.png');
}

div.village2 img#lswitch.lswitchMinus {
  background-image: url('../img_rtl/a/minusBig.png');
}

img#lswitch:hover {
  background-position: 0 -38px;
}

div.village2 img#lswitch {
  position: absolute;
  top: 31px;
  right: 73px;
  cursor: pointer;
  z-index: 500;
}
div.village2 a.contentTitleButton {
  position: absolute;
  left: 0;
  z-index: 500;
}
div.village2 img.rocket {
  z-index: 20;
  width: 75px;
  height: 140px;
}
div.village2 img.rocket_tur {
  right: 161px;
  top: 168px;
  background-image: url('../img_rtl/special/NewyearRocket_turquoise_1a.gif');
}
div.village2 img.rocket_purp {
  right: 265px;
  top: 148px;
  background-image: url('../img_rtl/special/NewyearRocket_purple_1a.gif');
}
div.village2 img.rocket_yell {
  right: 200px;
  top: 248px;
  background-image: url('../img_rtl/special/NewyearRocket_yellow_1a.gif');
}
div.village2 img.rocket_oran {
  right: 300px;
  top: 0;
  background-image: url('../img_rtl/special/NewyearRocket_orange_1a.gif');
}
div.village2 img.rocket_green {
  right: 110px;
  top: 230px;
  background-image: url('../img_rtl/special/NewyearRocket_green_1a.gif');
}
div.village2 img.rocket_red {
  right: 328px;
  top: 210px;
  background-image: url('../img_rtl/special/NewyearRocket_red_1a.gif');
}
div.village2 div.buildingList {
  top: -8px;
  right: 25px;
}
div.village2 .onTop {
  z-index: 50;
}

/* =========================================
   Building Hover FX (RTL)
   ========================================= */
#village_map .buildingSlot {
  position: absolute;
}
#village_map .buildingSlot img.building {
  pointer-events: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}
#village_map .buildingSlot .level.colorLayer {
  position: absolute;
  z-index: 5;
  pointer-events: auto;
}
#village_map .buildingSlot .level.colorLayer::before {
  content: "";
  position: absolute;
  left: -20px;
  top: -20px;
  width: 70px;
  height: 85px;
  background: transparent;
  pointer-events: auto;
}
#village_map .buildingSlot .level.colorLayer:hover ~ img.building {
  transform: scale(1.01);
  filter:
    drop-shadow(0 0 8px rgba(255,255,255,0.55))
    drop-shadow(0 4px 8px rgba(255,255,255,0.95));
}
#village_map .buildingSlot .level.colorLayer:active ~ img.building {
  transform: scale(1.01);
}

/* =========================================
   WW Building (g40) – Hover FX (RTL)
   ========================================= */

/* توسيع منطقة الهوفر لدائرة اللفل في WW */
#village_map .buildingSlot.g40 .level.colorLayer::before {
left: -84px;
  top: -95px;
  width: 185px;
  height: 292px;
  border-radius: 100px;
}

/* Wall Hover FX (RTL) */
#village_map .buildingSlot.a40 {
  position: absolute;
}
#village_map .buildingSlot.a40 img.wall {
  pointer-events: none;
  transition: filter 0.12s ease;
}
#village_map .buildingSlot.a40 img.wall ~ svg.buildingShape {
  position: absolute;
  inset: 0;
  z-index: 6;
}
#village_map .buildingSlot.a40 img.wall ~ svg.buildingShape .hoverShape path {
  fill: transparent;
  pointer-events: auto;
  cursor: pointer;
}
#village_map .buildingSlot.a40:hover img.wall {
  filter:
    drop-shadow(0 0 8px rgba(255,255,255,0.55))
    drop-shadow(0 4px 6px rgba(200,200,200,0.25));
}

/* Level toggle (RTL) */
#village_map.levelsHidden .buildingSlot .level.colorLayer {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}
#village_map.levelsHidden .buildingSlot .level.colorLayer::before,
#village_map.levelsHidden .buildingSlot .level.colorLayer::after {
  display: none !important;
}
#village_map.levelsHidden .buildingSlot .level .labelLayer {
  display: block;
  opacity: 1;
}

/* Marketplace SVG (RTL) */
#village_map .buildingSlot.a39 svg {
  pointer-events: auto;
}
#village_map .buildingSlot.a39 svg path {
  fill: rgba(174, 188, 144, 0.49);
  cursor: pointer;
  transition: fill 0.12s ease, filter 0.12s ease;
}
#village_map .buildingSlot.a39 svg path:hover {
  fill: rgba(255,255,255,0.2);
  filter: drop-shadow(0 0 6px rgba(255,255,255,.35));
}

/* ====== Winner Page ====== */
.winner-ww-img {
  float: left;
  max-width: 158px;
  height: auto;
  margin: 0 10px 10px 0;
}
.winner-timer-box {
  border-radius: 9px;
  padding: 6px;
  text-align: center;
  margin: 0 auto;
  width: 90%;
  background: linear-gradient(160deg, #fdf6e3 0%, #ede0c4 100%);
  border: 1px solid #c5a55a;
  border-top: 3px solid #bc3a3a;
}
.winner-timer-box h4 {
  color: #856404;
  margin: 0 0 10px 0;
}
.winner-timer-box .winner-countdown {
  font-size: 24px;
  font-weight: bold;
  color: #856404;
  direction: ltr;
}
.winner-timer-box.closed h4 {
  color: #721c24;
}
.winner-timer-box.closed p {
  color: #721c24;
}
.winner-timer-box.closed .winner-countdown {
  color: #721c24;
}
.wp-section {
  margin: 0 auto;
  width: 90%;
  box-sizing: border-box;
}
.wp-section-title {
  text-align: center;
  color: #5a3a0a;
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c5a55a;
  letter-spacing: .5px;
}
.wp-grid {
  display: flex;
  gap: 10px;
}
.wp-card {
  background: linear-gradient(160deg, #fdf6e3 0%, #ede0c4 100%);
  border: 1px solid #c5a55a;
  border-radius: 10px;
  padding: 12px 10px 10px;
  width: calc(25% - 10px);
  min-width: 128px;
  max-width: 200px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(101, 67, 10, .15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform .15s, box-shadow .15s;
  box-sizing: border-box;
}
.wp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(101, 67, 10, .25);
}
.wp-card-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c5a55a, #8b6120);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
  flex-shrink: 0;
  overflow: hidden;
}
.wp-card-badge img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.wp-card-header {
  font-size: 10px;
  color: #7a5c2a;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .4px;
  line-height: 1.3;
}
.wp-card-name {
  font-size: 13px;
  color: #3d2600;
  font-weight: bold;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  cursor: default;
}
.wp-card-stat {
  font-size: 11px;
  color: #0b0909;
  font-weight: bold;
  background: rgb(229, 206, 155);
  border-radius: 12px;
  padding: 2px 9px;
  min-width: 60px;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: center;
  box-shadow: 0 0 8px rgb(144, 109, 13);
  border: 1px solid rgba(2, 1, 0, .3);
  cursor: default;
}
.wp-card-reward {
  font-size: 13px;
  color: #6b4c1e;
  font-weight: bold;
  background: rgba(197, 165, 90, .18);
  border-radius: 20px;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}
.wp-card-reward .gold {
  vertical-align: middle;
}
.wp-card-alliance {
  border-top: 3px solid #c5a55a;
}
.wp-card-gold {
  border-top: 3px solid #ffd700;
}
.wp-card-silver {
  border-top: 3px solid #b0b0b0;
}
.wp-card-bronze {
  border-top: 3px solid #cd7f32;
}
.wp-card-attacker {
  border-top: 3px solid #c0392b;
}
.wp-card-defender {
  border-top: 3px solid #2980b9;
}
.wp-card-raider {
  border-top: 3px solid #27ae60;
}
.wp-note {
  text-align: center;
  font-size: 14px;
  color: #544015;
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid #d9c999;
}
@media (max-width: 480px) {
  .wp-card {
    width: calc(25% - 10px);
  }
}
.nw-page {
  border: 3px solid #6b4f2a;
  background: #f3e6c9;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  background-image: repeating-linear-gradient(45deg, rgba(107,79,42,0.05) 0px, rgba(107,79,42,0.03) 1px, transparent 1px, rgba(0,0,0,0.04) 10px);
}
.nw-hero {
  position: relative;
  height: 171px;
  background: url('../img_rtl/layout/Prizeicon/icons/header.webp') center/cover no-repeat;
  overflow: hidden;
}
.nw-hero::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 67px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #f3e6c9 100%);
}
.nw-title {
  text-align: center;
  font-size: 26px;
  margin-top: -42px;
  color: #000;
  text-shadow: 2px 2px 13px #a9a9a9;
  letter-spacing: 1px;
  position: relative;
  z-index: 10;
}
.nw-subtitle {
  text-align: center;
  color: #5a3b1d;
  position: relative;
  z-index: 10;
  font-style: italic;
  padding: 10px 40px;
  font-weight: bold;
}
.nw-subtitle2 {
  text-align: right;
  color: #5a3b1d;
  font-style: italic;
  padding: 1px 35px;
  font-weight: bold;
}
.nw-card {
  position: relative;
  margin: 6px;
  padding: 3px;
  background-image: linear-gradient(180deg, #cba467 5%, #f3e2ae 13%, #efbf7b 32%, #aa8050 48%, #835e35 72%, #ad8a54 93%, #d7b672 100%);
  border: 1px solid #302c2c;
  border-radius: 4px;
}
.nw-card-header {
  background: #c9a24a;
  padding: 10px;
  font-weight: bold;
  text-align: center;
  border: 1px double #34220d;
  border-bottom: none;
}
.nw-card-body {
  padding: 4px;
  color: #4a2f16;
  line-height: 1.5;
  background-color: #f3e6c9;
  border: 1px solid #302c2c;
  font-weight: bold;
}
.nw-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
  border-top: 1px solid #d6c3a3;
}
.nw-row:first-child {
  border-top: none;
}
.nw-row .nw-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}
.nw-winner-icon {
  position: absolute;
  top: -28px;
  right: -10px;
  width: 69px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.46));
}
.nw-footer {
  text-align: center;
  font-size: 12px;
  padding: 0;
  color: #6b4f2a;
}
.nw-footer a {
  font-weight: bold;
}
/* statistics page prizes centering */
.gc-prizes {
  margin: 14px auto;
  text-align: center;
}
.gc-prizes .wp-section {
  width: 100%;
}
.statistics h4.round {
  text-align: center;
}
.gc-server-info {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.gc-server-info tr.hover td {
  padding: 6px 10px;
  border-bottom: 1px solid #e0d4b0;
  color: #3a2a0a;
  font-size: 13px;
  line-height: 14px;
  text-align: right;
}
.gc-server-info tr.hover:last-child td {
  border-bottom: none;
}
/* 4-column server info table */
.gc-info-grid {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.gc-info-grid td {
  padding: 6px 10px;
  border-bottom: 1px solid #e0d4b0;
  color: #3a2a0a;
  font-size: 13px;
  line-height: 14px;
  vertical-align: middle;
}
.gc-info-grid tr:last-child td {
  border-bottom: none;
}
.gc-info-grid td.gc-info-label {
  font-weight: bold;
  color: #5a3a0a;
  width: 40%;
  text-align: right;
}
.gc-info-grid td.gc-info-value {
  width: auto;
  white-space: nowrap;
  padding-left: 20px;
  text-align: right;
}
.gc-info-grid td.gc-info-label2 {
  font-weight: bold;
  color: #5a3a0a;
  width: 40%;
  text-align: right;
  border-right: 2px solid #c5a55a;
  padding-right: 14px;
}
.gc-info-grid td.gc-info-value2 {
  width: auto;
  white-space: nowrap;
  text-align: right;
}
.gc-info-grid.gc-info-center {
  width: auto;
  margin: 0 auto;
}
.gc-info-grid td.gc-info-value2-auto {
  width: auto;
  white-space: nowrap;
  padding-left: 16px;
}
.gc-on  { color: #2a7a2a; }
.gc-off { color: #b00000; }

/* Nova Heroes - round history bars */
.nova-round-bar {
  display: flex;
  align-items: stretch;
  background: linear-gradient(200deg, #fdf6e3 0%, #ede0c4 100%);
  border: 1px solid #c5a55a;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: visible;
  position: relative;
  box-shadow: 0 3px 8px rgba(101, 67, 10, .15);
  direction: rtl;
}
.nova-cell {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 18px 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
.nova-cell:not(:first-child)::before {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: rgb(197, 163, 104);
}
.nova-round-num {
  flex: 0 0 27px;
  background: linear-gradient(135deg, #c5a55a, #8b6120);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}
.nova-round-big {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.nova-round-num .nova-cell-label {
  color: rgba(255,255,255,.8);
}
.nova-cell-label {
  font-size: 10px;
  color: #7a5c2a;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 6px;
  white-space: nowrap;
}
.nova-cell-icon {
  margin-bottom: 2px;
}
.nova-cell-name {
  font-size: 13px;
  font-weight: bold;
  color: #3d2600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-bottom: 6px;
}
.nova-cell-points {
  font-size: 11px;
  font-weight: bold;
  color: #0b0909;
  background: rgb(229, 206, 155);
  border-radius: 12px;
  padding: 2px 8px;
  display: inline-block;
  max-width: 100%;
  margin-top: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 0 8px rgb(144, 109, 13);
  border: 1px solid rgba(2, 1, 0, .3);
  cursor: default;
}
.nova-records-grid .wp-card {
  width: calc(25% - 10px);
  max-width: none;
  min-width: 120px;
}
.nova-ww-wins-card {
  width: 100%;
  background: linear-gradient(160deg, #fdf6e3 0%, #ede0c4 100%);
  border: 1px solid #c5a55a;
  border-top: 3px solid #c5a55a;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 3px 8px rgba(101, 67, 10, .15);
  box-sizing: border-box;
  margin-bottom: 11px;
}
.nova-ww-wins-header {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: right;
  margin-bottom: 10px;
}
.nova-ww-title {
  font-size: 16px;
  color: #7a5c2a;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .4px;
  line-height: 1.3;
}
.nova-ww-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c5a55a, #8b6120);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
  flex-shrink: 0;
  overflow: hidden;
}
.nova-ww-badge img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.nova-ww-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px;
}
.nova-ww-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  background: linear-gradient(160deg, #faf0d8 0%, #f0e4c6 100%);
  border: 1px solid #dfd3ad;
  transition: background .15s, transform .15s;
}
.nova-ww-row:first-child {
  background: linear-gradient(160deg, #f5e2b0 0%, #e8d292 100%);
  border-color: #c5a55a;
}
.nova-ww-row:hover {
  background: linear-gradient(160deg, #f5e8c2 0%, #e8d8aa 100%);
  transform: scale(1.01);
}
.nova-ww-rank {
  min-width: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #8b6120;
}
.nova-ww-name {
  flex: 1;
  font-size: 12px;
  font-weight: bold;
  color: #3d2600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  cursor: default;
}
.nova-ww-score {
  min-width: 30px;
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  color: #0b0909;
  background: rgb(229, 206, 155);
  box-shadow: 0 0 6px rgb(144, 109, 13);
  border: 1px solid rgba(2, 1, 0, .3);
  border-radius: 6px;
  padding: 2px 8px;
}


/* ====== Winner Test Page (winner_test.php) — independent styles ====== */
.wt-page {
  border: 3px solid #6b4f2a;
  background: #f3e6c9;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  background-image: repeating-linear-gradient(45deg, rgba(107,79,42,0.05) 0px, rgba(107,79,42,0.03) 1px, transparent 1px, rgba(0,0,0,0.04) 10px);
}
.wt-hero {
  position: relative;
  height: 171px;
  background: url('../img_rtl/layout/Prizeicon/icons/headerP.webp') center/cover no-repeat;
  overflow: hidden;
}
.wt-hero::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 67px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #f3e6c9 100%);
}
.wt-title {
  text-align: center;
  font-size: 26px;
  margin-top: -42px;
  color: #000;
  text-shadow: 2px 2px 13px #a9a9a9;
  letter-spacing: 1px;
  position: relative;
  z-index: 10;
}
.wt-subtitle {
  text-align: center;
  color: #5a3b1d;
  position: relative;
  z-index: 10;
  font-style: italic;
  padding: 10px 40px;
  font-weight: bold;
}
.wt-subtitle2 {
  text-align: right;
  color: #5a3b1d;
  font-style: italic;
  padding: 1px 35px;
  font-weight: bold;
}
.wt-card {
  position: relative;
  margin: 6px;
  padding: 3px;
  background-image: linear-gradient(180deg, #cba467 5%, #f3e2ae 13%, #efbf7b 32%, #aa8050 48%, #835e35 72%, #ad8a54 93%, #d7b672 100%);
  border: 1px solid #302c2c;
  border-radius: 4px;
}
.wt-card-header {
  background: #c9a24a;
  padding: 10px;
  font-weight: bold;
  text-align: center;
  border: 1px double #34220d;
  border-bottom: none;
}
.wt-card-body {
  padding: 4px;
  color: #4a2f16;
  line-height: 1.5;
  background-color: #f3e6c9;
  border: 1px solid #302c2c;
  font-weight: bold;
}
.wt-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
  border-top: 1px solid #d6c3a3;
}
.wt-row:first-child {
  border-top: none;
}
.wt-row .wt-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}
.wt-winner-icon {
  position: absolute;
  top: -28px;
  right: -10px;
  width: 69px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.46));
}
.wt-footer {
  text-align: center;
  font-size: 12px;
  padding: 0;
  color: #6b4f2a;
}
.wt-footer a {
  font-weight: bold;
}
.wt-timer-box {
  border-radius: 9px;
  padding: 6px;
  text-align: center;
  margin: 0 auto;
  width: 90%;
  background: linear-gradient(160deg, #fdf6e3 0%, #ede0c4 100%);
  border: 1px solid #c5a55a;
  border-top: 3px solid #bc3a3a;
}
.wt-timer-box h4 {
  color: #856404;
  margin: 0 0 10px 0;
}
.wt-timer-box .wt-countdown {
  font-size: 24px;
  font-weight: bold;
  color: #856404;
  direction: ltr;
}
.wt-timer-box.closed h4 {
  color: #721c24;
}
.wt-timer-box.closed p {
  color: #721c24;
}
.wt-timer-box.closed .wt-countdown {
  color: #721c24;
}
.wtp-section {
  margin: 0 auto;
  width: 90%;
  box-sizing: border-box;
}
.wtp-section-title {
  text-align: center;
  color: #5a3a0a;
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c5a55a;
  letter-spacing: .5px;
}
.wtp-grid {
  display: flex;
  gap: 10px;
}
.wtp-card {
  background: linear-gradient(160deg, #fdf6e3 0%, #ede0c4 100%);
  border: 1px solid #c5a55a;
  border-radius: 10px;
  padding: 12px 10px 10px;
  width: calc(25% - 10px);
  min-width: 128px;
  max-width: 200px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(101, 67, 10, .15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform .15s, box-shadow .15s;
  box-sizing: border-box;
}
.wtp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(101, 67, 10, .25);
}
.wtp-card-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c5a55a, #8b6120);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
  flex-shrink: 0;
  overflow: hidden;
}
.wtp-card-badge img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.wtp-card-header {
  font-size: 10px;
  color: #7a5c2a;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .4px;
  line-height: 1.3;
}
.wtp-card-name {
  font-size: 13px;
  color: #3d2600;
  font-weight: bold;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  cursor: default;
}
.wtp-card-stat {
  font-size: 11px;
  color: #0b0909;
  font-weight: bold;
  background: rgb(229, 206, 155);
  border-radius: 12px;
  padding: 2px 9px;
  min-width: 60px;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: center;
  box-shadow: 0 0 8px rgb(144, 109, 13);
  border: 1px solid rgba(2, 1, 0, .3);
  cursor: default;
}
.wtp-card-reward {
  font-size: 13px;
  color: #6b4c1e;
  font-weight: bold;
  background: rgba(197, 165, 90, .18);
  border-radius: 20px;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}
.wtp-card-reward .gold {
  vertical-align: middle;
}
.wtp-card-alliance { border-top: 3px solid #c5a55a; }
.wtp-card-gold { border-top: 3px solid #ffd700; }
.wtp-card-silver { border-top: 3px solid #b0b0b0; }
.wtp-card-bronze { border-top: 3px solid #cd7f32; }
.wtp-card-attacker { border-top: 3px solid #c0392b; }
.wtp-card-defender { border-top: 3px solid #2980b9; }
.wtp-card-raider { border-top: 3px solid #27ae60; }
.wtp-note {
  text-align: center;
  font-size: 14px;
  color: #544015;
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid #d9c999;
}
@media (max-width: 480px) {
  .wtp-card { width: calc(25% - 10px); }
}
.wt-card-body a {
  color: #BE0A0A;
  font-weight: bold;
  text-decoration: none;
}
.wt-card-body a:hover {
  text-decoration: underline;
}
.nw-card-body a {
  color: #BE0A0A;
  font-weight: bold;
  text-decoration: none;
}
.nw-card-body a:hover {
  text-decoration: underline;
}

/* ====== General Ranking Prizes (general.php) — independent styles ====== */
.gcp-section {
  margin: 14px auto;
  width: 90%;
  box-sizing: border-box;
}
.gcp-section-title {
  text-align: center;
  color: #5a3a0a;
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d9c999;
  letter-spacing: .5px;
}
.gcp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.gcp-card {
  background: linear-gradient(160deg, #fdf6e3 0%, #ede0c4 100%);
  border: 1px solid #c5a55a;
  border-radius: 10px;
  padding: 12px 10px 10px;
  width: calc(20% - 10px);
  min-width: 120px;
  max-width: 200px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(101, 67, 10, .15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform .15s, box-shadow .15s;
  box-sizing: border-box;
}
.gcp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(101, 67, 10, .25);
}
.gcp-card-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c5a55a, #8b6120);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
  flex-shrink: 0;
  overflow: hidden;
}
.gcp-card-badge img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.gcp-card-header {
  font-size: 10px;
  color: #7a5c2a;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .4px;
  line-height: 1.3;
}
.gcp-card-reward {
  font-size: 13px;
  color: #6b4c1e;
  font-weight: bold;
  background: rgba(197, 165, 90, .18);
  border-radius: 20px;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}
.gcp-card-reward .gold { vertical-align: middle; }
.gcp-card-alliance { border-top: 3px solid #c5a55a; }
.gcp-card-gold { border-top: 3px solid #ffd700; }
.gcp-card-attacker { border-top: 3px solid #c0392b; }
.gcp-card-defender { border-top: 3px solid #2980b9; }
.gcp-card-raider { border-top: 3px solid #27ae60; }
.gcp-note {
  text-align: center;
  font-size: 14px;
  color: #544015;
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid #d9c999;
}
@media (max-width: 600px) {
  .gcp-card { width: calc(50% - 10px); }
}
