/* LoveMT2 site - classic Metin2 look (2010 web layout: header art, red/gold
   buttons, parchment boxes) rebuilt as a responsive page. Art: static/classic/. */
@font-face {
  font-family: "Cinzel"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("classic/cinzel.woff2") format("woff2");
}
:root {
  --bg: #0b0806; --gold: #f2e69f; --gold-2: #d9b66a; --gold-3: #8a6a3a;
  --ink: #3a2412; --ink-muted: #6e5434; --red: #8b1a10; --red-2: #b3261a; --heading: #6b1c0c;
  --line: rgba(122, 84, 38, .45); --ok-bg: #dfeccb; --ok-ink: #2f5a12; --err-bg: #f3d4c4; --err-ink: #8a1f12;
  --display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 15px/1.55 var(--body);
  background: var(--bg) url("classic/bg-tile.jpg") repeat;
}
img { max-width: 100%; height: auto; }
a { color: var(--red); }
a:hover { color: var(--red-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.banner { background: #f2c94c; color: #1f1b16; text-align: center; padding: 6px 16px; font-weight: 600; position: relative; z-index: 3; }

/* --- header ------------------------------------------------------------------------- */
.hdr {
  background:
    linear-gradient(90deg, var(--bg) 0, rgba(11, 8, 6, 0) calc(50% - 600px), rgba(11, 8, 6, 0) calc(50% + 600px), var(--bg) 100%),
    url("classic/header.jpg") 50% 0 no-repeat;
  background-color: var(--bg);
}
.hdr-art { position: relative; max-width: 1080px; height: 253px; margin: 0 auto; }
.logo { position: absolute; left: 50%; top: 0; width: 260px; height: 68px; transform: translateX(-50%); }
.langs { position: absolute; right: 16px; top: 10px; display: flex; gap: 6px; font: 700 12px/1 var(--body); }
.langs a, .langs strong { padding: 5px 7px; border-radius: 3px; border: 1px solid rgba(217, 182, 106, .6); background: rgba(20, 10, 4, .65); color: var(--gold); text-decoration: none; }
.langs strong { background: var(--red); }
.langs a:hover { color: #fff; border-color: var(--gold); }
.cta {
  position: absolute; left: 50%; top: 132px; width: 533px; height: 92px; margin-left: -266px;
  background: url("classic/cta.jpg") no-repeat; color: var(--gold); text-decoration: none;
  text-shadow: 2px 2px 5px #000;
}
.cta:hover, .cta:focus-visible { background-image: url("classic/cta-h.jpg"); color: #fff; }
.cta strong { display: block; height: 72px; padding-left: 92px; font: 700 21px/72px var(--display); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 16px; }
.cta span { display: block; height: 20px; text-align: center; font: 700 12px/20px var(--body); word-spacing: .15em; }

/* --- page grid ---------------------------------------------------------------------- */
.page {
  max-width: 1080px; margin: 0 auto; padding: 0 16px 40px;
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 220px; gap: 0 26px; align-items: start;
}
.col-left, .col-right { margin-top: -62px; position: relative; z-index: 2; }
.col-main { padding-top: 26px; min-width: 0; }

/* parchment boxes (side boxes and content cards share the frame) */
.box, .card {
  background: #e8d3a6 url("classic/parchment.jpg") repeat;
  border: 1px solid #5d3c18; border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 244, 210, .45), inset 0 0 36px rgba(110, 66, 20, .38),
              0 0 0 3px #22140a, 0 0 0 4px var(--gold-3), 0 10px 26px rgba(0, 0, 0, .65);
}
.box { margin-bottom: 44px; position: relative; padding: 10px 8px; }
.box + .box::before {
  content: ""; position: absolute; left: 50%; top: -38px; width: 134px; height: 32px; margin-left: -67px;
  background: url("classic/chain.png") no-repeat;
}
.col-left .box:last-child::after, .col-right .box:last-child::after {
  content: ""; position: absolute; left: 50%; bottom: -40px; width: 150px; height: 48px; margin-left: -75px;
  background: url("classic/ornament.png") no-repeat; pointer-events: none;
}
.boxtitle {
  margin: 0 -2px 10px; height: 34px; padding: 0 2px; text-align: center;
  border-style: solid; border-width: 0 20px; border-image: url("classic/nav.png") 0 20 0 20 fill / 0 20px stretch;
  color: var(--gold); font: 700 13px/32px var(--display); text-shadow: 1px 1px 2px #000;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.box-body { padding: 0 6px 4px; margin: 0; }

/* main navigation: red/gold buttons */
.mainnav { display: flex; flex-direction: column; gap: 4px; }
.mainnav a {
  display: block; height: 34px; padding: 0 6px; text-align: center; text-decoration: none;
  border-style: solid; border-width: 0 20px; border-image: url("classic/nav.png") 0 20 0 20 fill / 0 20px stretch;
  color: #fef6aa; font: 700 13px/32px var(--display); text-shadow: 1px 1px 2px #000;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: filter .15s;
}
.mainnav a:hover, .mainnav a.active { border-image-source: url("classic/nav-h.png"); color: #fffde8; filter: brightness(1.12); }
.only-mobile { display: none !important; }

.dlbox .dlbtn {
  display: block; width: 130px; height: 68px; margin: 0 auto 4px;
  background: url("classic/dl.jpg") no-repeat; box-shadow: 0 0 0 1px #3a240f, 0 2px 6px rgba(0, 0, 0, .4);
}
.dlbox .dlbtn:hover { filter: brightness(1.15); }

/* side login */
.side-login label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-muted); margin-top: 6px; }
.side-login input { width: 100%; }
.side-login .btn-sm { width: 100%; margin-top: 10px; }
.small { font-size: 12.5px; margin: 6px 0; }
.center { text-align: center; }
.muted { color: var(--ink-muted); }

.status-list { list-style: none; }
.status-list li { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-bottom: 1px dotted var(--line); font-weight: 600; }
.status-list li:last-child { border-bottom: 0; }
.pill { font: 700 11px/1 var(--body); text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-radius: 999px; }
.pill.up { background: #2f6b1c; color: #e9ffd9; box-shadow: 0 0 8px rgba(80, 200, 60, .45); }
.pill.down { background: #7a1a10; color: #ffe2da; }

.top5 { list-style: none; padding: 0; margin: 0 0 8px; }
.top5 li { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px dotted var(--line); font-size: 13px; }
.top5 .n { width: 18px; font-weight: 700; color: var(--red); }
.top5 .nm { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top5 .lv { font-weight: 700; min-width: 20px; text-align: right; }

/* bronze small button (classic "arrow" button) */
.btn-sm {
  display: block; width: 100%; height: 24px; margin: 6px 0 0; padding: 0 26px 0 8px; cursor: pointer;
  border-style: solid; border-width: 3px 22px 3px 6px; border-image: url("classic/btn.png") 3 22 3 6 fill / 3px 22px 3px 6px stretch;
  background: none; color: var(--gold); font: 700 12px/18px var(--body); text-align: center; text-decoration: none;
  text-shadow: 1px 1px 1px #000;
}
.btn-sm:hover { color: #fff; filter: brightness(1.15); }
.box-body form { margin: 0; }

/* --- content cards ------------------------------------------------------------------ */
.card { padding: 18px 22px 20px; margin-bottom: 26px; }
.card.narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.card h1, .card h2 {
  margin: -2px -6px 14px; padding: 5px 10px 5px 38px; min-height: 30px;
  border-style: solid; border-width: 0 4px 0 30px; border-image: url("classic/heading.jpg") 0 4 0 30 fill / 0 4px 0 30px stretch;
  font-family: var(--display); color: var(--heading); line-height: 1.25; overflow-wrap: anywhere;
}
.card h1 { font-size: 1.35rem; font-weight: 700; }
.card h2 { font-size: 1.12rem; font-weight: 700; }
.card h1, .card h2 { padding-left: 8px; }
.card p { margin: 0 0 10px; }
.notice { background: rgba(139, 26, 16, .1); border-left: 3px solid var(--red); padding: 8px 12px; border-radius: 0 3px 3px 0; }

.flash { padding: 10px 14px; border-radius: 3px; margin-bottom: 16px; font-weight: 600; border: 1px solid; }
.flash.ok { background: var(--ok-bg); color: var(--ok-ink); border-color: #7da35b; }
.flash.error { background: var(--err-bg); color: var(--err-ink); border-color: #c0705a; }

/* forms */
.form label { display: block; font-weight: 700; margin-top: 12px; color: var(--ink); }
input, select { font: inherit; }
.form input, .side-login input, .form select {
  display: block; width: 100%; padding: 8px 10px; margin-top: 4px; color: #2a1a0c;
  background: rgba(255, 250, 236, .9); border: 1px solid #8a6a3a; border-radius: 3px;
  box-shadow: inset 0 1px 3px rgba(80, 50, 20, .25);
}
.side-login input { padding: 5px 7px; font-size: 13px; }
.form input:focus, .side-login input:focus, .form select:focus { outline: 2px solid var(--red-2); outline-offset: 1px; }
.btn {
  display: inline-block; padding: 9px 22px; cursor: pointer; text-decoration: none; text-align: center;
  background: linear-gradient(#c0301f, #7a130b); color: #fff4c8; border: 1px solid #e0b860; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, .45), 0 2px 0 #3a0a05, 0 3px 8px rgba(0, 0, 0, .35);
  font: 700 15px/1.2 var(--display); letter-spacing: .03em; text-shadow: 1px 1px 1px #000;
}
.btn:hover { filter: brightness(1.12); color: #fff; }
.btn.secondary { background: linear-gradient(#5b3b1c, #2e1c0c); }
.btn:disabled { opacity: .55; cursor: progress; filter: none; }
.form .btn { margin-top: 18px; width: 100%; }
.hint { color: var(--ink-muted); font-size: .86rem; margin: 4px 0 0; }
.hint.ok { color: var(--ok-ink); }
.links { margin-top: 14px; font-size: .95rem; }
.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--red); font: inherit; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; }
.info { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.info dt { color: var(--ink-muted); font-weight: 600; }
.info dd { margin: 0; overflow-wrap: anywhere; }
.status { padding: 2px 8px; border-radius: 999px; font-size: .88rem; font-weight: 700; }
.status-ok { background: var(--ok-bg); color: var(--ok-ink); }
.status-bad { background: var(--err-bg); color: var(--err-ink); }
code { background: rgba(255, 250, 236, .8); border: 1px solid var(--line); padding: 1px 6px; border-radius: 3px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* home */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step, .classes figure { display: flex; flex-direction: column; gap: 4px; margin: 0; color: var(--ink); text-decoration: none; }
.step img, .classes img, .shots img { display: block; width: 100%; border: 1px solid #5d3c18; box-shadow: 0 0 0 2px #e9d7ad, 0 0 0 3px var(--gold-3), 0 4px 10px rgba(0, 0, 0, .35); margin-bottom: 6px; }
.step strong, .classes strong { font: 700 15px/1.25 var(--display); color: var(--heading); display: block; }
.step span, .classes figcaption { font-size: 13.5px; }
.step:hover strong { color: var(--red-2); }
.step:hover img { filter: brightness(1.08); }
.classes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.features { margin: 0; padding-left: 0; list-style: none; }
.features li { position: relative; padding: 4px 0 4px 26px; }
.features li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 14px; height: 14px; background: radial-gradient(circle at 35% 35%, #ff9c7a, var(--red) 55%, #3a0a05); border: 1px solid var(--gold-2); border-radius: 50%; }
.news article { padding: 8px 0 10px; border-bottom: 1px dotted var(--line); }
.news article:last-child { border-bottom: 0; }
.news h3 { margin: 0 0 4px; font: 700 15px/1.3 var(--display); color: var(--heading); }
.news time { display: inline-block; font: 700 12px/1 var(--body); color: #fff4c8; background: var(--red); padding: 4px 6px; border-radius: 2px; margin-right: 6px; vertical-align: 2px; }
.news p { margin: 0 0 6px; }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.shots a:hover img { filter: brightness(1.1); }

/* download */
.bigdl-wrap { text-align: center; margin: 16px 0 10px; }
.bigdl {
  display: inline-block; width: 398px; max-width: 100%; aspect-ratio: 398 / 107; position: relative;
  background: url("classic/bigdl.jpg") center / 100% 100% no-repeat; text-decoration: none;
}
.bigdl:hover, .bigdl:focus-visible { background-image: url("classic/bigdl-h.jpg"); }
.bigdl span { position: absolute; left: 27%; right: 6%; top: 0; bottom: 6%; display: flex; align-items: center; justify-content: center; color: #fff4c8; font: 700 clamp(15px, 4.6vw, 22px)/1.1 var(--display); text-shadow: 2px 2px 4px #000; }
.howto { margin: 0; padding-left: 22px; }
.howto li { padding: 4px 0; }
.howto li::marker { color: var(--red); font-weight: 700; }

/* ranking */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tab { padding: 5px 14px; border: 1px solid #5d3c18; border-radius: 3px; text-decoration: none; background: rgba(255, 250, 236, .55); color: var(--ink); font: 700 13px/1.4 var(--display); }
.tab.active, .tab:hover { background: linear-gradient(#b3261a, #7a130b); color: #fff4c8; border-color: #e0b860; }
.table-wrap { overflow-x: auto; }
.rank, .tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.rank th, .tbl th { text-align: left; padding: 7px 8px; background: linear-gradient(#5b2a12, #33170a); color: var(--gold); font: 700 12.5px/1.2 var(--display); white-space: nowrap; }
.rank td, .tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rank tbody tr:nth-child(even) td { background: rgba(255, 248, 225, .35); }
.rank td img { vertical-align: -2px; }
.rank .num { text-align: right; width: 1%; }
.rank .name { font-weight: 700; }
.rank tr.top1 td { background: rgba(242, 201, 76, .35) !important; }
.rank tr.top2 td { background: rgba(200, 200, 200, .35) !important; }
.rank tr.top3 td { background: rgba(205, 127, 50, .28) !important; }

/* item shop (shopviews) */
.shop-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.shop-head > div:first-child { flex: 1 1 320px; }
.wallet { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.balance { font: 700 1.6rem/1.2 var(--display); color: var(--red); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.shop-grid .card { margin-bottom: 0; display: flex; flex-direction: column; }
.item h2 { font-size: 1rem; }
.meta { list-style: none; padding: 0; margin: 0 0 8px; color: var(--ink-muted); font-size: .9rem; }
.buy { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.price { font-weight: 700; font-size: 1.1rem; margin-right: auto; }
.qty { font-size: .9rem; color: var(--ink-muted); }
.qty select { padding: 4px; }
.form .check { font-weight: 400; }
.form .check input { display: inline; width: auto; }
.form.row { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.form.row input { width: auto; flex: 1 1 160px; }
.form.row .btn { width: auto; margin-top: 0; }
.tbl tr.off td { color: var(--ink-muted); }
.pos { color: var(--ok-ink); }
.neg { color: var(--err-ink); }

/* --- footer ------------------------------------------------------------------------- */
.ftr { background: #000 url("classic/footer.jpg") 50% 0 no-repeat; color: #b7a77f; padding: 40px 16px 30px; text-align: center; font-size: 13px; }
.ftr-inner { max-width: 760px; margin: 0 auto; }
.ftr-logo { font: 900 26px/1.2 var(--display); color: var(--gold); text-shadow: 0 0 12px rgba(242, 201, 76, .35), 2px 2px 3px #000; margin-bottom: 8px; }
.ftr-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 10px; }
.ftr-links a { color: var(--gold-2); text-decoration: none; font-weight: 600; }
.ftr-links a:hover { color: #fff; }
.ftr p { margin: 0; color: #8f8166; font-size: 12px; }

/* --- responsive ----------------------------------------------------------------------- */
@media (max-width: 1060px) {
  .page { grid-template-columns: 180px minmax(0, 1fr) 200px; gap: 0 18px; }
  .classes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hdr { background-size: auto 210px; }
  .hdr-art { height: 210px; }
  .cta { top: 109px; transform: scale(.83); transform-origin: 50% 0; }
  .page { grid-template-columns: minmax(0, 1fr); padding: 0 16px 32px; }
  .col-left, .col-right { margin-top: 0; }
  .col-left { order: 1; margin-top: -26px; }
  .col-main { order: 2; padding-top: 18px; }
  .col-right { order: 3; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 20px; }
  .box + .box::before, .col-left .box:last-child::after, .col-right .box:last-child::after { display: none; }
  .box { margin-bottom: 20px; }
  .dlbox { display: none; }
  .col-left .box { padding: 8px; }
  .mainnav { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .only-mobile { display: block !important; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .hdr { background-size: auto 200px; background-position: 50% 0; }
  .hdr-art { height: auto; padding-top: 98px; }
  .logo { height: 54px; width: 220px; }
  .langs { top: 8px; right: 10px; }
  .cta {
    position: static; display: block; width: auto; height: auto; margin: 0 16px; transform: none;
    padding: 10px 12px; text-align: center; border-radius: 3px;
    background: linear-gradient(#b3261a, #6e1209); border: 1px solid #e0b860;
    box-shadow: inset 0 1px 0 rgba(255, 220, 150, .4), 0 4px 12px rgba(0, 0, 0, .6);
  }
  .cta:hover, .cta:focus-visible { background: linear-gradient(#c8301f, #7a130b); }
  .cta strong { height: auto; padding: 0; font-size: 17px; line-height: 1.25; white-space: normal; }
  .cta span { height: auto; font-size: 11.5px; line-height: 1.4; margin-top: 4px; }
  .col-left { margin-top: 18px; }
  .mainnav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mainnav a { font-size: 13px; }
  .card { padding: 14px 14px 16px; }
  .card h1 { font-size: 1.15rem; }
  .card h2 { font-size: 1.02rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
  .step img { grid-row: span 2; margin: 0; }
  .classes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info { grid-template-columns: 1fr; gap: 2px; }
  .info dd { margin-bottom: 8px; }
  .rank th, .rank td { padding: 6px 5px; font-size: 13px; }
}
