/* Mortal Kombat Komplete Edition on NOBK Online: bronze, gold and blood (own stylesheet, site.css stays).
   Owner: MK9 chat. Headings in Cinzel (Google Fonts, OFL), numbers in the site's Barlow Condensed. */
.theme-mk9 {
  --bg: #0f0b08; --panel: #1a130e; --panel-2: #241a12; --line: #3a2a1b;
  --text: #f3e6c4; --muted: #b39a6a; --accent: #b3121b; --accent-2: #e8c66a; --accent-ink: #fff3d4;
  --gold: #e8c66a; --bronze: #c9a24a; --blood: #b3121b; --win: #6fcf7a;
  --mkhead: "Cinzel", Georgia, serif;
  background: var(--bg); min-height: 100vh;
}
html:has(body.theme-mk9) { background: #0f0b08; }
body.theme-mk9 { background: linear-gradient(rgba(15, 11, 8, .9), rgba(15, 11, 8, .95)), url(/assets/mk9/art/stone.jpg) center top / 1280px auto repeat, #0f0b08; }
.theme-mk9 footer { background: transparent; }
.theme-mk9 h1, .theme-mk9 h2, .theme-mk9 .subnav a { font-family: var(--mkhead); }
.theme-mk9 h1 { letter-spacing: .04em; color: var(--gold); }
.theme-mk9 h1 em { color: var(--accent); }
.theme-mk9 h2 { letter-spacing: .1em; font-size: 18px; color: var(--accent-ink); }
.theme-mk9 h2::before { background: var(--bronze); transform: rotate(45deg) scale(.72); }
.theme-mk9 h2 .h2sub { font: 600 12px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.theme-mk9 .subnav a { letter-spacing: .08em; font-size: 16px; border: 1px solid transparent; border-bottom: 0; }
.theme-mk9 .subnav a.on { background: var(--blood); color: #f6dc92; border-color: var(--bronze); }
.theme-mk9 .subnav .rule { background: linear-gradient(90deg, var(--bronze), var(--blood) 50%, var(--bronze)); height: 2px; }
.theme-mk9 .panel, .theme-mk9 .stat, .theme-mk9 .lcard { border-color: var(--line); background: var(--panel); }
.theme-mk9 .stat::before { background: var(--bronze); }
.theme-mk9 .stat.red::before { background: var(--blood); }
.theme-mk9 .stat.gold b { color: var(--gold); }
.theme-mk9 .stat.red b { color: #ff5a4f; }
.theme-mk9 th { background: var(--panel-2); color: var(--muted); }
.theme-mk9 td.pts { color: var(--gold); }
.theme-mk9 .tag.ranked { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.theme-mk9 .tag.hot { background: var(--blood); border-color: var(--blood); color: #fff3d4; }
.theme-mk9 .lbtable tr.top td { background: color-mix(in srgb, var(--gold) 5%, transparent); }
.theme-mk9 a { color: inherit; }

/* hero: the standard site banner (.hero, same size as the other games) with the owner's MK9 art */
.theme-mk9 .hero { background: #0f0b08; }
.theme-mk9 .hero .art { object-position: 50% 45%; }
.theme-mk9 .hero .plate img { filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .75)); }
/* the logo in the middle, between the two fighters of the banner (owner, 28 Nov 2026; added by the site chat) */
.theme-mk9 .hero .plate { left: 50%; top: 50%; transform: translate(-50%, -50%); }
/* fighter portraits and arena pictures (game art; the monogram / frame stays as the fallback) */
.mkface { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--bronze); background: #1a110b; }
.mkchamp header .mkface { width: 64px; height: 64px; flex-basis: 64px; border-width: 2px; }
.mkchamp.has-pic { padding-top: 0; overflow: hidden; }
.mkchamp .mkpic { display: block; width: calc(100% + 28px); margin: 0 -14px 12px; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.mkthumb { width: 64px; height: 36px; flex: 0 0 64px; border-radius: 4px; object-fit: cover; border: 1px solid var(--line); }

/* names, avatars, monograms */
.mkav { position: relative; display: inline-grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--bronze); overflow: hidden; vertical-align: middle; }
.mkav b { font: 800 12px/1 var(--mkhead); color: var(--gold); }
.mkav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mkname { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; min-width: 0; }
.mkname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkname:hover span { color: var(--gold); }
.mkmono { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  border: 1px solid var(--bronze); background: radial-gradient(circle at 40% 35%, #3a2414, #1a110b);
  font: 800 13px/1 var(--mkhead); color: var(--gold); letter-spacing: .02em; }
.mkarena { display: inline-block; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px; border: 1px solid var(--bronze);
  background: linear-gradient(180deg, #2a1a10, #120c08), #120c08; position: relative; }
.mkarena::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 7px; height: 12px; border: 2px solid var(--bronze); border-bottom: 0; border-radius: 10px 10px 0 0; }

/* rows with bars (fighters, arenas) */
.mkrow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.mkrow:first-child { border-top: 0; }
.mkrank { width: 20px; text-align: center; color: var(--muted); font: 800 14px/1 var(--head); }
.mkrow-n { flex: 1; min-width: 0; }
.mkrow-n b { display: block; font: 700 15px/1.2 var(--body); margin-bottom: 6px; }
.mkrow-v { text-align: right; min-width: 64px; }
.mkrow-v b { display: block; font: 800 18px/1 var(--head); }
.mkrow-v small { color: var(--muted); font-size: 11px; }
.mkrow .mkname { flex: 1; }
.mkbar { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.mkbar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blood), var(--gold)); border-radius: 3px; }

/* results: one card per verified match, each side with its fighter, the arena behind the middle */
.mkresults { display: grid; gap: 10px; }
.mkcard { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(232, 198, 106, .08), transparent 38%, transparent 62%, rgba(179, 18, 27, .1)), var(--panel); }
.mkcard:hover { border-color: color-mix(in srgb, var(--bronze) 60%, var(--line)); }
.mkcard-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse 34% 130% at 50% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 34% 130% at 50% 50%, #000 20%, transparent 75%); }
.mkside { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mkside.lost { flex-direction: row-reverse; text-align: right; }
.mkside .mkface, .mkside .mkmono { width: 56px; height: 56px; flex: 0 0 56px; border-width: 2px; font-size: 18px; }
.mkside.won .mkface { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 198, 106, .16), 0 6px 18px rgba(0, 0, 0, .5); }
.mkside.lost .mkface { filter: grayscale(.55) brightness(.8); }
.mkface-none { display: inline-block; border-radius: 50%; border: 1px dashed var(--line) !important; background: var(--panel-2); }
.mkside-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mkside.lost .mkside-t { align-items: flex-end; }
.mkside-t > small { font: 700 11px/1 var(--mkhead); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mkside.won .mkside-t > small { color: var(--gold); }
.mksk { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.mkside.won .mksk b { color: var(--win); }
.mkside.lost .mksk b { color: #ff6b6b; }
.mkwin { font: 800 10px/1 var(--body); font-style: normal; letter-spacing: .12em; text-transform: uppercase; padding: 3px 6px; border-radius: 4px; background: var(--gold); color: #1a110b; }
.mkmid { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 120px; text-align: center; }
.mkvs { font: 800 24px/1 var(--mkhead); color: var(--blood); text-shadow: 0 2px 0 #000, 0 0 18px rgba(179, 18, 27, .5); }
.mkar { font: 700 12px/1.2 var(--mkhead); letter-spacing: .05em; color: var(--accent-ink); text-shadow: 0 1px 2px #000; }
.mkmid time { font-size: 11px; color: var(--muted); }
.mkgap { font: 700 11px/1 var(--body); color: var(--gold); }

/* home */
.mktiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.theme-mk9 .stat.live b { color: var(--win); }
.mklivegrid { grid-template-columns: 1.5fr 1fr; }
.mkrooms { display: grid; gap: 8px; }
.mkroom { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.mkroom.playing { border-color: color-mix(in srgb, var(--blood) 55%, var(--line)); background: linear-gradient(90deg, rgba(179, 18, 27, .14), transparent 60%), var(--panel); }
.mkroom-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(232, 198, 106, .14); }
.mkroom.playing .mkroom-dot { background: #ff4a3d; box-shadow: 0 0 0 4px rgba(255, 74, 61, .18); animation: mkpulse 1.4s ease-in-out infinite; }
@keyframes mkpulse { 50% { box-shadow: 0 0 0 8px rgba(255, 74, 61, 0); } }
.mkroom-host { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mkroom-host small { color: var(--muted); font-size: 12px; }
.mkroom-n { font: 700 14px/1 var(--head); color: var(--muted); }
.mkroom-n b { font-size: 20px; color: var(--gold); }
.mkempty { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 92px; }
.mkempty-ic { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; border: 2px solid var(--bronze); background: radial-gradient(circle at 40% 35%, #a3161d, #3a0508 70%); }
.mkfotwp { position: relative; overflow: hidden; background: radial-gradient(70% 120% at 100% 0, rgba(179, 18, 27, .28), transparent 65%), var(--panel); }
.mkfotw .mkkicker { display: block; font: 700 11px/1 var(--mkhead); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.mkfotw { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px; }
.mkfotw .mkav { width: 64px; height: 64px; flex-basis: 64px; border-width: 2px; }
.mkfotw .mkav b { font-size: 26px; }
.mkfotw a { display: block; font: 800 24px/1.1 var(--mkhead); color: var(--gold); text-decoration: none; }
.mkfotw b { display: block; font: 800 22px/1.3 var(--head); }
.mkfotw b small { font: 600 12px var(--body); color: var(--muted); margin-left: 6px; }
.mkfotw span { color: var(--muted); font-size: 12px; }
.stats.nine { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.mkcols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* champions */
.mkgrand { position: relative; display: flex; align-items: center; gap: 18px; padding: 20px 24px; margin: 6px 0 8px;
  border: 1px solid var(--bronze); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(ellipse 50% 140% at 100% 50%, rgba(179, 18, 27, .35), transparent 70%), var(--panel); }
.mkgrand .mkav { width: 72px; height: 72px; flex-basis: 72px; border: 2px solid var(--gold); }
.mkgrand .mkav b { font-size: 30px; }
.mkgrand small { display: block; font: 700 12px/1 var(--mkhead); letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.mkgrand a { display: block; margin: 6px 0; font: 800 32px/1 var(--mkhead); color: var(--gold); text-decoration: none; }
.mkgrand span { color: var(--muted); }
.mkcrown { position: absolute; right: 26px; top: 50%; width: 64px; height: 44px; transform: translateY(-50%); opacity: .5;
  background: var(--gold); clip-path: polygon(0 100%, 0 25%, 22% 55%, 50% 0, 78% 55%, 100% 25%, 100% 100%); }
.mkchamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mkchamp { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: relative; }
.mkchamp:not(.none) { border-color: color-mix(in srgb, var(--bronze) 70%, var(--line)); }
.mkchamp:not(.none)::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--blood), var(--gold), transparent); }
.mkchamp header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mkchamp h3 { margin: 0; font: 700 16px/1.1 var(--mkhead); letter-spacing: .04em; }
.mkchamp p { margin: 0; color: var(--muted); font-size: 12px; }
.mkchamp.none { opacity: .62; }
.mkchamp-1 { display: flex; align-items: center; gap: 10px; }
.mkchamp-1 .mkav { width: 40px; height: 40px; flex-basis: 40px; border-color: var(--gold); }
.mkchamp-1 small { display: block; font: 700 10px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.mkchamp-1 a { display: block; font: 800 17px/1.25 var(--body); text-decoration: none; }
.mkchamp-1 span { color: var(--muted); font-size: 12px; }
.mkchamp-n { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.mkchamp-n span { color: var(--muted); width: 14px; }
.mkchamp-n a { flex: 1; text-decoration: none; }
.mkmedal { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 800 12px/1 var(--head); font-style: normal; color: #1a110b; }
.mkmedal.m1 { background: #e8c66a; } .mkmedal.m2 { background: #c9ccd1; } .mkmedal.m3 { background: #c98a4a; }

/* tabs (leaderboard) */
.mktabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.mktabs a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none;
  font: 700 13px/1 var(--mkhead); letter-spacing: .08em; text-transform: uppercase; }
.mktabs a.on { background: var(--blood); border-color: var(--bronze); color: #f6dc92; }
.theme-mk9 .lbtable td .mkname { font-weight: 700; }

/* player */
.mkhead { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 30px 0 8px; }
.mkhead > .mkav { width: 84px; height: 84px; flex-basis: 84px; border: 2px solid var(--gold); }
.mkhead > .mkav b { font-size: 34px; }
.mkhead > div:nth-child(2) { flex: 1; min-width: 200px; }
.mkskills { display: flex; gap: 10px; }
.mkskill { min-width: 150px; padding: 12px 16px; border: 1px solid var(--bronze); border-radius: var(--radius); background: var(--panel); }
.mkskill.none { border-color: var(--line); opacity: .7; }
.mkskill small { display: block; font: 700 11px/1 var(--mkhead); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mkskill b { display: block; font: 800 40px/1.05 var(--head); color: var(--gold); }
.mkskill span { color: var(--muted); font-size: 12px; }
.mkkvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.mkkv { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.mkkv small { display: block; color: var(--muted); font-size: 11px; }
.mkkv b { font: 800 19px/1.25 var(--head); }
.mkrecs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.mkrecs .mkkv { border: 0; border-radius: 0; }
.mkgrid { grid-template-columns: 1.2fr 1fr; }

/* stats page */
.stats.eight { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.mkmono.big { width: 56px; height: 56px; flex-basis: 56px; font-size: 18px; }
.mkpicks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.mkpick { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 14px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(80% 120% at 0 0, rgba(179, 18, 27, .2), transparent 60%), var(--panel); }
.mkpick:first-child { border-color: var(--bronze); }
.mkpick .mkface.xl, .mkpick .mkmono { width: 72px; height: 72px; flex-basis: 72px; border-width: 2px; font-size: 22px; }
.mkpick div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mkpick div b { font: 800 18px/1.1 var(--mkhead); letter-spacing: .03em; }
.mkpick div span { color: var(--muted); font-size: 12px; }
.mkpick div a { color: var(--gold); text-decoration: none; }
.mkpick .mkbar { grid-column: 1 / -1; }
.mkpick-r { position: absolute; top: 8px; right: 12px; font: 800 28px/1 var(--mkhead); color: rgba(232, 198, 106, .22); }
.mkfcell { display: inline-flex; align-items: center; gap: 10px; }
.mkfcell .mkface, .mkfcell .mkmono { width: 30px; height: 30px; flex-basis: 30px; font-size: 11px; }
.mkftable td { white-space: nowrap; }
.mkarenas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.mkarenacard { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #2a1a10, #120c08); }
.mkarena-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mkarenacard:hover .mkarena-img { transform: scale(1.05); }
.mkarenacard > div { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 3px; padding: 34px 12px 10px;
  background: linear-gradient(0deg, rgba(10, 7, 5, .95), transparent); }
.mkarenacard b { font: 800 15px/1.1 var(--mkhead); letter-spacing: .03em; }
.mkarenacard small { color: var(--muted); font-size: 12px; }
.mkarenacard .mkpick-r { top: auto; bottom: 10px; color: rgba(232, 198, 106, .45); font-size: 22px; }
.mkmoves .stat b { font-size: 26px; }
.mkboards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mkboard { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.mkboard.ver { border-color: color-mix(in srgb, var(--bronze) 60%, var(--line)); background: radial-gradient(90% 100% at 100% 0, rgba(232, 198, 106, .1), transparent 60%), var(--panel); }
.mkboard h3 { margin: 0 0 8px; font: 700 13px/1.2 var(--mkhead); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.mkboard p { margin: 0; color: var(--muted); font-size: 12px; }
.mkboard ol { list-style: none; margin: 0; padding: 0; }
.mkboard li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.mkboard li:first-child { border-top: 0; }
.mkboard li .mkname { flex: 1; }
.mkboard li > b { font: 800 16px/1 var(--head); white-space: nowrap; }
.mkboard li > b small { font: 600 11px var(--body); color: var(--muted); }
.mkboard li:first-child > b { color: var(--gold); }
.mkboard-r { width: 16px; text-align: center; color: var(--muted); font: 800 13px/1 var(--head); }
.mkmu { display: grid; grid-template-columns: auto minmax(80px, 1fr) 2fr auto minmax(80px, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.mkmu:first-child { border-top: 0; }
.mkmu .mkface, .mkmu .mkmono { width: 32px; height: 32px; flex-basis: 32px; font-size: 11px; }
.mkmu b { font: 700 14px/1.1 var(--body); }
.mkmu b.r { text-align: right; }
.mkmu-bar { height: 8px; border-radius: 4px; background: rgba(179, 18, 27, .6); overflow: hidden; }
.mkmu-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--bronze)); }
.mkmu-n { text-align: center; font: 800 15px/1.1 var(--head); }
.mkmu-n small { display: block; font: 600 11px var(--body); color: var(--muted); }
.mkchartp { padding: 14px 16px 30px; }
.mkchartp h3 { margin: 0 0 14px; font: 700 12px/1 var(--mkhead); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mkchart { display: flex; align-items: flex-end; gap: 3px; height: 150px; }
.mkcol { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.mkcol i { display: block; border-radius: 3px 3px 0 0; background: linear-gradient(0deg, var(--blood), var(--gold)); }
.mkcol:hover i { filter: brightness(1.25); }
.mkcol small { position: absolute; left: 0; bottom: -18px; font-size: 10px; color: var(--muted); white-space: nowrap; }

@media (max-width: 900px) {
  .mkcols, .mkgrid, .mklivegrid { grid-template-columns: 1fr; }
  .mkcard { grid-template-columns: 1fr; gap: 10px; }
  .mkside.lost { flex-direction: row; text-align: left; }
  .mkside.lost .mkside-t { align-items: flex-start; }
  .mkmid { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; min-width: 0; }
  .mkmu { grid-template-columns: auto 1fr auto 1fr auto; }
  .mkmu .mkmu-bar { display: none; }
}

/* Live page as the Challenge Tower (28 Nov, concept D): stone tablets either side, the recent results as the floors
   of the tower in the middle. The winner of a floor is lit in gold with a crown, the loser turns to stone. */
.mkd { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.3fr) minmax(0, .9fr); gap: 22px; align-items: start; margin: 26px 0 30px; }
.mkd-side { display: grid; gap: 18px; min-width: 0; }
.mktab { border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0;
  background: linear-gradient(180deg, #241a12, #140e0a); box-shadow: inset 0 1px 0 rgba(232, 198, 106, .08), 0 10px 24px rgba(0, 0, 0, .35); }
.mktab h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 13px/1.2 var(--mkhead); letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); text-align: center; }
.mktab h3::before, .mktab h3::after { content: ""; flex: 1; min-width: 12px; height: 1px; background: linear-gradient(90deg, transparent, var(--bronze)); }
.mktab h3::after { transform: scaleX(-1); }
.mktab .empty { padding: 14px 6px; text-align: center; color: var(--muted); font-size: 13px; }
.mktab-fotw { background: radial-gradient(90% 80% at 50% 0, rgba(179, 18, 27, .32), transparent 70%), linear-gradient(180deg, #241a12, #140e0a); }
.mktab .mkfotw { flex-direction: column; text-align: center; padding: 4px 0 0; gap: 10px; }
.mktab .mkfotw .mkav { width: 96px; height: 96px; flex-basis: 96px; border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(232, 198, 106, .15), 0 0 26px rgba(232, 198, 106, .3); }
.mktab .mkfotw .mkav b { font-size: 38px; }
.mktab .mkfotw .mkkicker { display: none; }
.mktab .mkfotw a { overflow-wrap: anywhere; }
.mktab .mkfotw .mkcrown { position: static; order: -1; transform: none; width: 44px; height: 28px; margin-bottom: -6px; opacity: .9; }
.mktab .mkrooms { gap: 6px; }
.mktab .mkroom { flex-wrap: wrap; gap: 6px 10px; padding: 10px 12px; background: rgba(0, 0, 0, .25); }
.mktab .mkempty { min-height: 70px; padding: 12px; font-size: 13px; background: transparent; border-style: dashed; }
.mkkv-r { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid #2c2016; }
.mkkv-r:first-child { border-top: 0; }
.mkkv-r span { color: var(--muted); font-size: 13px; }
.mkkv-r b { font: 800 21px/1 var(--head); color: var(--accent-ink); }
.mkkv-r.gold b { color: var(--gold); }
.mkkv-r.red b { color: #ff5a4f; }
.mktop { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #2c2016; }
.mktop:first-child { border-top: 0; }
.mktop-n { font: 800 16px/1 var(--head); color: var(--muted); text-align: center; }
.mktop:first-child .mktop-n { color: var(--gold); }
.mktop:first-child .mkav { border-color: var(--gold); }
.mktop-v { text-align: right; }
.mktop-v b { display: block; font: 800 22px/1 var(--head); color: var(--gold); }
.mktop-v small { font-size: 11px; color: var(--muted); }
.mktab-more { display: block; margin-top: 12px; text-align: center; font: 700 12px/1 var(--mkhead); letter-spacing: .1em; color: var(--gold); text-decoration: none; }
.mktab-more:hover { text-decoration: underline; }

.mktower { position: relative; min-width: 0; border: 2px solid var(--bronze); border-bottom: 0; border-radius: 16px 16px 0 0; overflow: hidden;
  background: #0b0806; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.theme-mk9 .mktower-cap { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; padding: 14px;
  background: linear-gradient(180deg, #5a0d0d, #2a0808); border-bottom: 2px solid var(--bronze); color: var(--gold); font-size: 18px; letter-spacing: .16em; text-transform: uppercase; }
.theme-mk9 .mktower-cap::after { content: ""; width: 9px; height: 9px; background: var(--bronze); transform: rotate(45deg) scale(.72); }
.mktower > .empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.mktower-base { height: 18px; border-top: 2px solid var(--bronze); background: repeating-linear-gradient(90deg, #3a2a1b 0 40px, #2c2016 40px 80px); }
.mkfl { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch; min-height: 108px; border-bottom: 1px solid #3a2a1b; }
.mkfl:last-child { border-bottom: 0; }
.mkfl-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; z-index: -2; }
.mkfl::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11, 8, 6, .55), rgba(11, 8, 6, .72) 40%, rgba(11, 8, 6, .86) 62%, rgba(11, 8, 6, .96)); }
.mkfl-n { align-self: center; text-align: center; font: 800 20px/1 var(--head); color: var(--bronze); }
.mkfs { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 12px; }
.mkfs.won { background: linear-gradient(90deg, rgba(232, 198, 106, .2), rgba(232, 198, 106, .05) 70%, transparent); box-shadow: inset 3px 0 0 var(--gold); }
.mkfs.lost { flex-direction: row-reverse; text-align: right; }
.mkfs-face { position: relative; flex: none; display: grid; }
.mkfs .mkface, .mkfs .mkmono { width: 60px; height: 60px; flex-basis: 60px; border-width: 2px; font-size: 18px; }
.mkfs.won .mkface, .mkfs.won .mkmono { width: 76px; height: 76px; flex-basis: 76px; border-color: var(--gold); font-size: 22px;
  box-shadow: 0 0 0 3px rgba(232, 198, 106, .22), 0 0 24px rgba(232, 198, 106, .38), 0 6px 18px rgba(0, 0, 0, .6); }
.mkfs.lost .mkface, .mkfs.lost .mkmono { filter: grayscale(.9) brightness(.6); border-color: #4a3a28; }
.mkfs-crown { position: absolute; left: 50%; top: -11px; width: 28px; height: 17px; transform: translateX(-50%); background: var(--gold);
  clip-path: polygon(0 100%, 0 25%, 22% 55%, 50% 0, 78% 55%, 100% 25%, 100% 100%); }
.mkfs-t { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.mkfs.lost .mkfs-t { align-items: flex-end; opacity: .7; }
.mkfs-tag { font: 800 10px/1 var(--body); font-style: normal; letter-spacing: .14em; text-transform: uppercase; padding: 4px 7px; border-radius: 4px; }
.mkfs.won .mkfs-tag { background: linear-gradient(#f3d98a, #c9a24a); color: #1a110b; box-shadow: 0 0 12px rgba(232, 198, 106, .45); }
.mkfs.lost .mkfs-tag { border: 1px solid #4a3a28; color: var(--muted); }
.mkfs .mkname { max-width: 100%; }
.mkfs .mkname .mkav { display: none; }
.mkfs.won .mkname span { font: 800 18px/1.15 var(--mkhead); color: var(--gold); text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.mkfs.lost .mkname span { font-size: 14px; color: #cdbb95; }
.mkfs small { max-width: 100%; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkfs .mksk { display: inline; font-size: 12px; }
.mkfs.won .mksk b { color: var(--win); }
.mkfs.lost .mksk b { color: #ff6b6b; }
.mkfl-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 112px; padding: 10px 6px; text-align: center; }
.mkfl-mid .mkar { max-width: 130px; }
.mkfl-mid time { font-size: 11px; color: var(--muted); }
@media (max-width: 1180px) {
  .mkd { grid-template-columns: 1fr 1fr; }
  .mktower { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 700px) {
  .mkd { grid-template-columns: 1fr; }
  .mkfl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mkfl-n { display: none; }
  .mkfl-mid { grid-column: 1 / -1; grid-row: 2; flex-direction: row; flex-wrap: wrap; justify-content: center; min-width: 0; padding: 0 12px 12px; }
  .mkfs { gap: 8px; padding: 14px 8px 10px; }
  .mkfs .mkface, .mkfs .mkmono { width: 44px; height: 44px; flex-basis: 44px; }
  .mkfs.won .mkface, .mkfs.won .mkmono { width: 54px; height: 54px; flex-basis: 54px; }
  .mkfs.won .mkname span { font-size: 15px; }
}

/* Tiers and seasons (28 Nov, owner). Tiers come from the skill (site side): stone, bronze, silver, gold, blood,
   Elder God (Raiden's lightning). Seasons: the leaderboard's Season tab, a panel on Live, badges on the profile. */
.mktier { --tc: #8a7a66; display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--mkhead); letter-spacing: .08em;
  text-transform: uppercase; color: var(--tc); white-space: nowrap; }
.mktier > i { width: 12px; height: 12px; flex: none; transform: rotate(45deg); border-radius: 2px; border: 1px solid rgba(0, 0, 0, .5);
  background: linear-gradient(135deg, #fff8, var(--tc) 45%, #0006); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc) 40%, transparent); }
.mktier.t1 { --tc: #c98a4a; }
.mktier.t2 { --tc: #c9d0d8; }
.mktier.t3 { --tc: #e8c66a; }
.mktier.t4 { --tc: #ff5a4f; }
.mktier.t4 > i { box-shadow: 0 0 8px rgba(255, 90, 79, .6); }
.mktier.t5 { --tc: #9fdcff; text-shadow: 0 0 10px rgba(159, 220, 255, .6); }
.mktier.t5 > i { box-shadow: 0 0 10px rgba(159, 220, 255, .9); }
.mktier.big, .mkskill .mktier { color: var(--tc); font-size: 13px; margin: 4px 0 6px; }
.mktier.big > i { width: 15px; height: 15px; }
.mktier small { margin-left: 4px; font: 600 11px/1 var(--body); letter-spacing: 0; color: var(--muted); text-shadow: none; }
.mkladder { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.mkseasonrule { margin: 10px 2px 16px; font-size: 13px; color: var(--muted); max-width: 900px; }
.mkup { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font: 700 10px/1 var(--body); font-style: normal; letter-spacing: .06em;
  text-transform: uppercase; color: var(--win); }
.mkup .mktier { font-size: 10px; }
.mkfs-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mkfs.lost .mkfs-tags { justify-content: flex-end; }
.mktop-p { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.mktop-p .mktier { font-size: 9.5px; }
.mktop-p .mktier > i { width: 9px; height: 9px; }
.mktop-n .mkmedal { width: 20px; height: 20px; font-size: 11px; }
.mktab-season { background: radial-gradient(90% 70% at 50% 0, rgba(232, 198, 106, .14), transparent 70%), linear-gradient(180deg, #241a12, #140e0a); }
.mkseason-left { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.mkseasonhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); border-radius: var(--radius);
  background: radial-gradient(70% 140% at 0 0, rgba(232, 198, 106, .12), transparent 70%), var(--panel); }
.mkseasonhead b { display: block; font: 800 26px/1.1 var(--mkhead); color: var(--gold); }
.mkseasonhead span { font-size: 13px; color: var(--muted); }
.mkseasonnav { display: flex; flex-wrap: wrap; gap: 6px; }
.mkseasonnav a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font: 700 12px/1 var(--mkhead); letter-spacing: .06em; text-decoration: none; color: var(--text); }
.mkseasonnav a.on { background: var(--blood); border-color: var(--bronze); color: #f6dc92; }
.mkpodiums { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mkpodium { padding: 14px 16px; }
.mkpodium > b { display: block; margin-bottom: 6px; font: 800 15px/1 var(--mkhead); letter-spacing: .08em; color: var(--gold); }
.mkskill-p { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.mkskill-p small { font: 600 11px/1.2 var(--body) !important; letter-spacing: 0 !important; text-transform: none !important; }
.mkprog { display: block; width: 100%; height: 5px; border-radius: 3px; background: #2c2016; overflow: hidden; }
.mkprog i { display: block; height: 100%; background: linear-gradient(90deg, var(--bronze), var(--gold)); }
.mkbadges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.mkbadge { display: flex; align-items: center; gap: 10px; min-width: 170px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); text-decoration: none; color: inherit; }
.mkbadge small { display: block; font: 700 10px/1 var(--mkhead); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mkbadge b { display: block; font: 800 17px/1.2 var(--mkhead); }
.mkbadge span { font-size: 12px; color: var(--muted); }
.mkbadge.now { flex-direction: column; align-items: flex-start; gap: 2px; border-color: color-mix(in srgb, var(--bronze) 60%, var(--line)); }
.mkbadge .mkmedal { width: 34px; height: 34px; font-size: 16px; box-shadow: 0 0 14px rgba(232, 198, 106, .35); }
.mkbadge.p1 { border-color: var(--gold); background: radial-gradient(80% 120% at 0 50%, rgba(232, 198, 106, .18), transparent 70%), var(--panel); }
.mkbadge.p1 b { color: var(--gold); }

/* Who is in the game now (Live) and time in the game (Stats, profile): server v15, 28 Nov */
.mkonline-n { font: 800 14px/1 var(--head); color: var(--win); letter-spacing: 0; }
.mkonline { display: grid; gap: 6px; }
.mkon { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .25); min-width: 0; }
.mkon-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 3px rgba(111, 207, 122, .15); }
.mkon.searching .mkon-dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(232, 198, 106, .18); animation: mkpulse 1.4s ease-in-out infinite; }
.mkon.match .mkon-dot { background: #ff4a3d; box-shadow: 0 0 0 3px rgba(255, 74, 61, .2); animation: mkpulse 1.4s ease-in-out infinite; }
.mkon.hosting .mkon-dot { background: var(--bronze); }
.mkon-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mkon-t small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkon.match .mkon-t small { color: #ff8a80; }
.mkon .mkav { width: 22px; height: 22px; flex-basis: 22px; }
.mkplay .mkrow-n .mkname { margin-bottom: 6px; }
.mkbadge-play { min-width: 200px; }
.mkspark { display: flex; align-items: flex-end; gap: 2px; width: 100%; height: 26px; margin-top: 4px; }
.mkspark i { flex: 1; min-height: 2px; border-radius: 2px 2px 0 0; background: linear-gradient(0deg, var(--bronze), var(--gold)); opacity: .85; }

/* How to play (after the WWE 2009 page): credit, download box, requirements, game version, F1 keys */
.credit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 4px 0 18px; padding: 20px 22px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); background: radial-gradient(70% 140% at 0 0, rgba(232, 198, 106, .12), transparent 70%), var(--panel); }
.credit .ctext { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.credit .clabel { font: 800 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.credit .ctext > b { font: 800 28px/1.05 var(--mkhead); color: var(--gold); letter-spacing: .03em; overflow-wrap: anywhere; }
.credit p { margin: 2px 0 0; max-width: 860px; }
.credit a, .theme-mk9 .lead a, .theme-mk9 details a, .theme-mk9 .sub a { color: var(--gold); }
.credit small { color: var(--muted); }
.svdl { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 4px 0 26px;
  padding: 18px 20px; border: 1px solid var(--bronze); border-radius: 14px; background: var(--panel); }
.svdl::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--panel) 38%, rgba(26, 19, 14, .55)); }
.mkdl-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; opacity: .5; }
.svdl > div { display: flex; flex-direction: column; gap: 3px; flex: 1 1 260px; }
.svdl b { font: 800 22px/1.1 var(--mkhead); text-transform: uppercase; letter-spacing: .04em; }
.svdl span { color: var(--muted); font-size: 14px; }
.svdl .btn { font-size: 16px; padding: 12px 26px; }
.svdl-soon { color: var(--text) !important; }
.svver { font-style: normal; font-size: .7em; color: var(--blood); margin-left: 6px; vertical-align: middle; }
.theme-mk9 .req { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.theme-mk9 .req b, .theme-mk9 .step h3 { font-family: var(--mkhead); letter-spacing: .04em; }
.theme-mk9 .step::before { color: var(--gold); }
.gamever { padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.gamever dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 18px; margin: 0 0 12px; }
.gamever dl div { display: flex; flex-direction: column; gap: 2px; }
.gamever dt { color: var(--muted); font: 700 11px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.gamever dd { margin: 0; font: 800 18px/1.2 var(--head); }
.gamever p { margin: 0; color: var(--muted); }
.step .legal { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--blood); background: rgba(179, 18, 27, .08); color: var(--muted); font-size: 13px; }
.ctl { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.ctl div { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.ctl .keys { flex: none; min-width: 120px; padding: 4px 8px; border-radius: 6px; background: var(--gold); color: #28160a; font: 800 13px/1.2 var(--head); text-align: center; }
.ctl b { font-weight: 600; }
.theme-mk9 .callout { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); background: rgba(232, 198, 106, .07); }
/* "In the game" features list (How to play): the name above its text */
.mkfeat { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.mkfeat div { flex-direction: column; align-items: flex-start; gap: 8px; }
.mkfeat .keys { min-width: 0; }
.mkfeat b { font-weight: 500; line-height: 1.5; }

/* how to play: How to install, PC / Steam Deck tabs */
.mktabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); }
.mktabs button { appearance: none; border: 0; cursor: pointer; padding: 9px 22px; border-radius: 999px; background: transparent;
  color: var(--muted); font: 700 13px/1 var(--mkhead); letter-spacing: .1em; text-transform: uppercase; }
.mktabs button:hover { color: var(--text); }
.mktabs button.on { background: linear-gradient(180deg, var(--gold), var(--bronze)); color: #1a110b; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.mktabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.mkpane-h { margin: 0 0 4px; font: 700 18px/1.2 var(--mkhead); letter-spacing: .04em; color: var(--accent-ink); }


/* v13: achievements on the player page (Steam-like) */
#mkach { margin-top: 24px; }
.mkachhead { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 12px; flex-wrap: wrap; }
.mkachhead b { font: 800 18px/1 var(--head); }
.mkachhead span:last-child { color: var(--muted); margin-left: auto; }
.mkachbar { flex: 1; min-width: 140px; height: 8px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.mkachbar i { display: block; height: 100%; background: linear-gradient(90deg, #b3121b, #e8c66a); }
.mkachs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; margin-bottom: 8px; }
.mkach { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.mkach img, .mkach-ph { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; background: rgba(255,255,255,.06); }
.mkach b { display: block; font: 700 15px/1.25 var(--head); }
.mkach span { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.mkach small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.mkach em { font-style: normal; font: 800 13px/1 var(--head); color: #e8c66a; }
.mkach.locked { opacity: .55; }
.mkach.locked img { filter: grayscale(1) brightness(.6); }
#mkachbtn { margin-top: 4px; }

/* polish (30 Nov, owner): the tower floors lost their numbers; fighters and arenas on /mk9/ show 8 each with the same
   columns and row height, then "All (n)" to the stats page; long stats lists open with "Show all (n)" */
.mkcols .mkrow { min-height: 62px; }
.mkcols .panel .mkall { margin: 0; padding: 14px; border-top: 1px solid var(--line); }
.mkmore { display: block; margin: 12px auto; }
.panel > .mkmore, .panel .tscroll + .mkmore { margin: 12px auto 14px; }
/* the eight big numbers of the stats page: 4 x 2 (8 in a row did not fit: the last one sat alone) */
.stats.mktiles.eight { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .stats.mktiles.eight { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
