/* Qala Arena - reytinq sehifesi (topgen.php) */
body {
  background: #d4c9a8 url('/i/misc/bg_parchment.jpg') repeat;
  font-family: Verdana, Arial, sans-serif;
  font-size: 10pt;
  margin: 0;
  padding: 10px;
  color: #2c2418;
}
h2 { color: #6b1a1a; font-size: 14pt; margin: 8px 0 12px; text-align: center; text-shadow: 1px 1px 0 rgba(255,255,255,0.3); }
h3 { color: #6b1a1a; font-size: 11pt; margin: 18px 0 6px; border-bottom: 1px solid #c9b88c; padding-bottom: 3px; }
a { color: #003388; text-decoration: none; }
a:hover { text-decoration: underline; }
img { border: 0; vertical-align: middle; }

/* yuxari tablar */
.tabs { display: flex; justify-content: center; gap: 4px; border-bottom: 2px solid #5c3d2e; margin-bottom: 6px; }
.tabs a { padding: 6px 16px; background: #c9b88c; color: #3a2515; font-weight: bold; border: 1px solid #8b7355; border-bottom: 0; border-radius: 6px 6px 0 0; }
.tabs a.on { background: #5c3d2e; color: #f3e3b5; }
.tabs a:hover { text-decoration: none; background: #b39f70; }
.tabs a.on:hover { background: #5c3d2e; }

/* heftelik zolaq */
.weekbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 8px; }
.levels a { display: inline-block; min-width: 22px; text-align: center; padding: 2px 6px; margin-right: 2px; border: 1px solid #8b7355; border-radius: 4px; background: rgba(255,250,235,0.7); font-weight: bold; color: #6b1a1a; }
.levels a.on { background: #6b1a1a; color: #fff3d0; }
.levels .hint, .info { color: #5a4a30; font-size: 9pt; }
.mybox { float: right; text-align: right; margin: 0 0 8px 10px; padding: 6px 10px; background: rgba(255,250,235,0.85); border: 1px solid #8b7355; border-radius: 4px; }

/* cedvel */
table.rating { width: 100%; border-collapse: collapse; border: 2px solid #8b7355; background: rgba(255,250,235,0.85); clear: both; }
table.rating th { background: #5c3d2e; color: #e8d8b0; padding: 6px 8px; text-align: center; font-size: 9pt; border-bottom: 2px solid #3a2515; letter-spacing: 0.5px; }
table.rating th:first-child { width: 35px; }
table.rating th:nth-child(2) { text-align: left; }
table.rating td { padding: 4px 8px; border-bottom: 1px solid #c9b88c; font-size: 9pt; vertical-align: middle; text-align: center; }
table.rating td:first-child { color: #8b7355; font-weight: bold; }
table.rating td:nth-child(2) { text-align: left; }
table.rating tr:hover { background: rgba(210,180,120,0.4); }
table.rating tr.even { background: rgba(245,235,210,0.7); }
table.rating tr.odd { background: rgba(255,250,240,0.6); }
table.rating tr.top3 td { background: rgba(255,215,0,0.12); }
table.rating tr.me td { background: rgba(255,240,120,0.6); }
td.empty { padding: 20px !important; color: #776; }
.player-name { font-weight: bold; color: #2c2418; }
.player-level { color: #666; font-size: 8pt; }
.win { color: #2d7a2d; font-weight: bold; }
.lose { color: #b03030; font-weight: bold; }
.nich { color: #777; }
.score-pos { color: #1a4d1a; font-weight: bold; font-size: 11pt; }
.score-neg { color: #993333; font-weight: bold; font-size: 11pt; }
.score-zero { color: #666; font-weight: bold; font-size: 11pt; }

/* medallar (CSS, sekilsiz) */
.medal { display: inline-block; width: 16px; height: 16px; line-height: 16px; border-radius: 50%; text-align: center; font-size: 8pt; font-weight: bold; color: #fff; vertical-align: middle; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.25); }
.medal.m1 { background: #d4a017; }
.medal.m2 { background: #9aa3ab; }
.medal.m3 { background: #b06a2c; }

/* qaydalar */
table.rules { width: 100%; border-collapse: collapse; background: rgba(255,250,235,0.85); border: 1px solid #8b7355; }
table.rules th { background: #8b7355; color: #fff3d0; padding: 4px 6px; font-size: 9pt; }
table.rules td { padding: 4px 6px; border-bottom: 1px dotted #c9b88c; font-size: 9pt; text-align: center; }
table.rules td:first-child { text-align: left; }
table.prizes td:first-child { text-align: center; }
.note { font-size: 9pt; color: #4a3c28; margin: 6px 0; }
.prevwin div { padding: 2px 0; }
