/* Classic Metin2 private-server look: framed page, bronze boxes, gold Cinzel titles. */
:root {
  --gold: #e8c475;
  --gold-2: #f6dc9a;
  --text: #dccfb6;
  --dim: #a8987c;
  --panel: rgba(22, 14, 8, 0.94);
  --line: #5e4423;
  --line-2: #8a6533;
  --shinsoo: #ec6a5a;
  --chunjo: #ebcb5a;
  --jinno: #6aaaf0;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font: 15px/1.6 Tahoma, Verdana, 'Segoe UI', sans-serif;
  background: #050302 url(/img/meydan.jpg) center top / 1600px auto no-repeat fixed;
}
body::before {   /* darkens the courtyard so the boxes read on top of it */
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(rgba(5, 3, 2, 0.55), rgba(5, 3, 2, 0.92) 70%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
h1, h2, h3 { font-family: 'Cinzel', Georgia, serif; font-weight: 700; margin: 0; }
p { margin: 0 0 12px; }

.page { max-width: 1000px; margin: 0 auto; padding: 0 12px 24px; }

/* Header: the game's key-pattern strip, the login-screen banner, the menu bar */
.kenar { height: 25px; background: url(/img/kenar.jpg) left center / auto 100% repeat-x; }
.head { margin-top: 16px; border: 1px solid var(--line-2); background: #000; box-shadow: 0 0 24px rgba(0, 0, 0, 0.8); }
.banner img { width: 100%; aspect-ratio: 1024 / 370; object-fit: cover; }
.menu {
  display: flex; flex-wrap: wrap; justify-content: center;
  background: linear-gradient(#3a1d0d, #1b0c04); border-top: 1px solid var(--line-2);
}
.menu a {
  font: 700 15px/1 'Cinzel', Georgia, serif; letter-spacing: 0.04em; color: var(--gold);
  text-decoration: none; padding: 15px 22px; border-right: 1px solid #2a1508; border-left: 1px solid #4a2814;
}
.menu a:hover, .menu a[aria-current='page'] { color: #fff; background: linear-gradient(#5a2e13, #2a1306); text-shadow: 0 0 8px rgba(246, 220, 154, 0.6); }

/* Columns */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; margin-top: 14px; }

/* Boxes */
.box { background: var(--panel); border: 1px solid var(--line); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); margin-bottom: 14px; }
.box > h1, .box > h2 {
  font-size: 17px; color: var(--gold); padding: 10px 14px;
  background: linear-gradient(#4a2310, #200d04); border-bottom: 1px solid var(--line-2);
  text-shadow: 0 1px 2px #000;
}
.box > h1 { font-size: 19px; }
.box-body { padding: 14px; }
.box-body > :last-child { margin-bottom: 0; }

.small { font-size: 13px; color: var(--dim); }
.center { text-align: center; }
strong { color: var(--gold-2); }

/* Buttons */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font: 700 14px/1 'Cinzel', Georgia, serif; letter-spacing: 0.03em; color: #fbe6b0;
  padding: 11px 18px; border: 1px solid #c9944a;
  background: linear-gradient(#93611f, #4a2a0b); box-shadow: inset 0 1px 0 rgba(255, 230, 170, 0.35);
}
.btn:hover { color: #fff; background: linear-gradient(#b07628, #5a340e); }
.btn:active { transform: translateY(1px); }
.btn-dark { background: linear-gradient(#3a2a1a, #1a120a); border-color: var(--line-2); }
.btn-big { font-size: 17px; padding: 15px 30px; }

/* Forms */
.form, .side-login { display: grid; gap: 6px; }
.form { max-width: 420px; }
label { font-weight: bold; color: var(--gold-2); margin-top: 8px; font-size: 14px; }
input {
  font: inherit; color: #f2e7d0; background: #0d0905; border: 1px solid var(--line-2);
  padding: 9px 10px; width: 100%;
}
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 6px rgba(232, 196, 117, 0.5); }
.form .btn, .side-login .btn { margin-top: 12px; justify-self: start; }
.hint { font-size: 13px; color: var(--dim); margin: 0; }
.error { background: #3d1010; border: 1px solid #8a2b2b; color: #ffd6d6; padding: 10px 12px; }
.hp { position: absolute; left: -10000px; }
.hash { overflow-wrap: anywhere; }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: 6px; }

/* Home */
.facts { padding-left: 1.2em; margin: 0 0 16px; }
.facts li { margin-bottom: 6px; }
.classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.classes figure { margin: 0; border: 1px solid var(--line-2); background: #000; }
.classes img { aspect-ratio: 1; object-fit: cover; object-position: 75% 30%; }
.classes figcaption { text-align: center; font: 700 14px/1 'Cinzel', Georgia, serif; color: var(--gold); padding: 8px 0; background: linear-gradient(#3a1d0d, #1b0c04); }
.news + .news { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.news h3 { font-size: 17px; color: var(--gold-2); }
.date { font-size: 13px; color: var(--dim); margin-bottom: 8px; }

/* Side */
.on { color: #7be07b; font-weight: bold; }
.off { color: #ff7b6b; font-weight: bold; }
.on::before, .off::before { content: '● '; }
.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini td { padding: 5px 0; border-top: 1px solid #33240f; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.emp1 { color: var(--shinsoo); } .emp2 { color: var(--chunjo); } .emp3 { color: var(--jinno); }
.top { margin: 0 0 10px; padding-left: 1.4em; }
.top li .num { float: right; color: var(--dim); }

/* Tables */
.rank { width: 100%; border-collapse: collapse; font-size: 14px; }
.rank th { font: 700 13px/1 'Cinzel', Georgia, serif; color: var(--gold); text-align: left; padding: 10px 8px; background: #2c160a; border-bottom: 1px solid var(--line-2); }
.rank td { padding: 8px; border-bottom: 1px solid #2e2010; }
.rank tbody tr:nth-child(even) { background: rgba(255, 220, 160, 0.03); }
.rank th:last-child { text-align: right; }
.totals { max-width: 340px; margin-top: 14px; }

/* Footer */
.foot { margin-top: 8px; text-align: center; font-size: 13px; color: var(--dim); background: rgba(0, 0, 0, 0.75); border: 1px solid var(--line); }
.foot p { margin: 10px 14px; }

@media (max-width: 820px) {
  .cols { grid-template-columns: 1fr; }
  .menu a { padding: 13px 14px; font-size: 14px; }
  .classes { grid-template-columns: repeat(2, 1fr); }
  body { background-size: 1000px auto; background-attachment: scroll; }
}
